LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 07-20-2016, 05:46 AM   #1
lolhangman
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
install custom kernel and rootfs on board SMDKV210


Hello,

I need help to install custom uboot + kernel + rootfs on a device with board SMDKV210 (device is panel INEWTEK)

So the fact is that worked on a device (inewtek) with board SMDKV210 (call it old board so OB).
I was given a list of commands (uboot) and files (uboot + kernel + rootfs) to install our custom linux os and application on this board via serial port.
This worked perfectly.

But inewtek decided to update their product so now they sell us a new panel with board SMDKV210 (call it new board so NB).

My job is to install our custom linux os and application on this board.

Of course I am new to embedded environment so I am a bit lost.

Inewtek gave me original files (uboot + kernel + rootfs) for the new board, and I have of course our custom files.

For now I am only able to install our custom kernel on this NB, but I cannot install the custom rootfs (do we say ramdisk ?).

So bellow I give you :
Procedure and commands we used to install custom os on the OB.
Procedure and commands to install original os on NB
Procedure and commands I tried to install custom kernel and rootfs on NB
The boot trace to show the error I'm stuck at.

I think I made an error on memory addresses but I can't see the issue cause the display stop after "starting kernel...".
I read it could be because my kernel sends messages on an other output.

So please help me on this, our (very little) company can't sell product anymore.


***********************************************
***********************************************
Commands to install custom os on old board)
------------------------------------------------
setenv serverip 192.168.0.5 //tftp server ip
setenv ipaddr 192.168.0.20 // panel ip
tftp 20008000 u-boot.bin // get the custom uboot
nand erase 0 40000
nand write 20008000 0 40000
tftp 20008000 PROD-zImageMTD3 // get the custom kernel
nand erase 40000 3C0000
nand write 20008000 40000 3C0000
tftp 20008000 PROD-zImageMTD2 // get a custom temporary ramdisk we will boot on, then we could copy rootfs to mtdblock3
bootm 20008000
cd /tmp
mkdir mnt
tftp -g -r PROD-RFS-2015-06-10.tar 192.168.0.5 // get custom rootfs
flash_eraseall -j /dev/mtd3
mount -t jffs2 /dev/mtdblock3 mnt
ls mnt // should be empty
tar -xf PROD-RFS-2015-06-10.tar -C mnt // install custom rootfs
ls mnt should see all the files and folder (etc, usr, dev, var, root ...)
umount mnt
reboot
***********************************************
***********************************************

***********************************************
***********************************************
Commands to install original os on new board)
------------------------------------------------
nand erase clean;nand scrub;setenv serverip 192.168.0.5;setenv ipaddr 192.168.0.20
setenv up_uboot tftp 24000000 S5PV210_2016/u-boot.bin\;nand erase 0 60000\;nand write 24000000 0 60000;run up_uboot
setenv up_kernel tftp 24000000 S5PV210_2016/zImage\;nand erase 00600000 00300000\;nand write 24000000 00600000 00300000
setenv up_ramdisk tftp 24000000 S5PV210_2016/linux-ramdisk.gz\;nand erase 00b00000 00a00000\;nand write 24000000 00b00000 00a00000
setenv bootargs console=ttySAC2,115200 init=/linuxrc ethaddr=$ethaddr slram=dmc1,0x40000000,+0x10000000
setenv bootcmd nand read 20008000 600000 300000\;nand read 21000000 b00000 a00000\;bootm 20008000 21000000
saveenv
run up_kernel;run up_ramdisk
(reboot manually)
***********************************************
***********************************************

***********************************************
***********************************************
Commands to install custom os on new board (DO NOT WORK)
------------------------------------------------
setenv serverip 192.168.0.5
setenv ipaddr 192.168.0.20
setenv up_kernel tftp 24000000 PROD-zImageMTD3\;nand erase 00600000 003C0000\;nand write 24000000 00600000 003C0000
setenv up_ramdisk tftp 24000000 PROD-zImageMTD2\;nand erase 00b00000 00a00000\;nand write 24000000 00b00000 00a00000
setenv bootargs root=/dev/mtdblock3 rootfstype=cramfs console=ttySAC1,115200 init=/linuxrc ethaddr=$ethaddr slram=dmc1,0x40000000,+0x10000000
setenv bootcmd nand read 20008000 600000 003C0000\;nand read 21000000 b00000 a00000\;bootm 20008000 21000000
saveenv
run up_kernel;run up_ramdisk
(reboot manually)
***-----------------------------------------***
boot trace with error
-----------------------------------------------
NAND read: device 0 offset 0x600000, size : 0x3c0000
3932160 bytes read: OK

NAND read: device 0 offset 0xb00000, size : 0xa00000
10485760 bytes read: OK
Boot with zImage
The input address don't need a virtual-to-physical translation : 20008000
get_format
-------- 1 --------
## Loading init Ramdisk from Legacy Image at 21000000 ...
Image Name: ramdisk
Created: 2015-06-23 1:58:07 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 8863276 Bytes = 8.5 MB
Load Address: 20800000
Entry Point: 20800000
Verifying Checksum ... OK

Starting kernel ...

***********************************************
***********************************************
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with APT on my Zynq-Board with a custom rootfs Kampi Linux - Software 1 11-20-2014 01:43 PM
[SOLVED] is it needed to flash kernel image and rootfs image separately in embedded board? ayyasprings Linux - Embedded & Single-board computer 11 10-16-2014 09:31 AM
how can we install bridge-utils to our target board kernel sumitnegi Linux - Embedded & Single-board computer 0 09-14-2012 07:00 AM
[SOLVED] Custom kernel install wootletootle Slackware 29 10-25-2011 01:52 PM
Custom Install Kernel? ericbobbitt SUSE / openSUSE 2 04-06-2006 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration