Difference between revisions of "Boot from USB using u-boot"


From SamyGO
Jump to: navigation, search
Line 21: Line 21:
 
* Build rootfs image using [http://wiki.samygo.tv/index.php?title=SamyGO_OpenEmbedded SamyGO OE Framework].
 
* Build rootfs image using [http://wiki.samygo.tv/index.php?title=SamyGO_OpenEmbedded SamyGO OE Framework].
  
Builded rootfs image is located in '''build-samygo/tmp/deploy/images''' directory. File name looks like '''externalboot-<FIRMWARE>-rootfs-sdp83-xxxxxxx.tar.gz'''.
+
Builded rootfs image is located in '''build-samygo/tmp/deploy/images''' directory. File name looks like '''externalboot-<FIRMWARE>-rootfs-leonid-xxxxxxx.tar.gz'''.
  
 
* Partition usb disk/pen drive.
 
* Partition usb disk/pen drive.
Line 27: Line 27:
 
Partition drive using '''fdisk''' or other tool.
 
Partition drive using '''fdisk''' or other tool.
  
First parittion FAT type. It will be usefull or needed if loading kernel image from it.
+
First parittion FAT type. It will be usefull or needed if you don't have network on tv.
 
Second partition as Linux type.
 
Second partition as Linux type.
  
Line 41: Line 41:
 
Note: Do this only if you want faster kernel load image.
 
Note: Do this only if you want faster kernel load image.
  
Unpack '''uImage-2.6.18_SELP-ARM''' from /boot in image rootfs, raname it to '''uImage''' and copy to root directory of TFTP service.
+
Unpack '''uImage-2.6.18-r0-leonid.bin''' from /boot in image rootfs, raname it to '''uImage''' and copy to root directory of TFTP service.
  
 
* Enable [http://wiki.samygo.tv/index.php?title=Enable_Serial_Console_on_non_CI%2B_Devices serial debug console].
 
* Enable [http://wiki.samygo.tv/index.php?title=Enable_Serial_Console_on_non_CI%2B_Devices serial debug console].

Revision as of 07:06, 10 May 2010

Note: This instruction apply and booting only to TV with firmwares listed below!

T-CHE6AUSC, T-CHE7AUSC, T-CHEAUSC, T-CHL5DAUC, T-CHL5DEUC, T-CHL7DAUC, T-CHL7DEUC, T-CHU7DAUC, T-CHU7DEUC

This is for advanced users and developers only.


Requirements:

  • Serial connection
  • Usb disk drive or pen drive (at least 256MB)
  • TFTP server outside TV on some host in case using pen drive or optionaly in case disk drive
  • Regular Linux based system to prepare usb disk/pen drive
  • Builded rootfs image

Follow steps:

Builded rootfs image is located in build-samygo/tmp/deploy/images directory. File name looks like externalboot-<FIRMWARE>-rootfs-leonid-xxxxxxx.tar.gz.

  • Partition usb disk/pen drive.

Partition drive using fdisk or other tool.

First parittion FAT type. It will be usefull or needed if you don't have network on tv. Second partition as Linux type.

Format first partition with mtools or other tool as VFAT type filesystem. Format second partition with ext2fsprogs as ext2/ext3.

  • Unpack rootfs image to linux partition on usb disk/pen drive.

Unpack image to second partition with root rights.

  • Put kernel image to TFTP service directory.

Note: Do this only if you want faster kernel load image.

Unpack uImage-2.6.18-r0-leonid.bin from /boot in image rootfs, raname it to uImage and copy to root directory of TFTP service.

  • Set variables and execute commands in u-boot shell to boot linux kernel.

In case use TFTP set network variables first:

setenv ipaddr 192.168.1.100;setenv gatewayip 192.168.1.1;setenv serverip 192.168.1.2

where first IP is TV, second gateway is not important in this case, third is address of TFTP server.

Boot linux kernel (case TFTP):

setenv bootargs root=/dev/sda2 console=ttyS1;tftp;bootm

Boot linux kernel (case USB FAT partition):

setenv bootargs root=/dev/sda2 console=ttyS1;usb start;fatload usb 0 61000000 uImage;bootm

where /dev/sda2 is linux rootfs.

  • Start Samsung original software:

After boot system, login over serial console as root and execute followed command:

samsung-start.sh