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


From SamyGO
Jump to: navigation, search
Line 1: Line 1:
 
'''Note: This instruction apply only to LExxB65x, LExxB75x, PSxxB65x TV series with CI only supported devices'''
 
'''Note: This instruction apply only to LExxB65x, LExxB75x, PSxxB65x TV series with CI only supported devices'''
 +
'''This is for advanced users and developers'''
  
 
Requirements:
 
Requirements:
Line 16: Line 17:
  
 
2) Partition usb disk/pen drive.
 
2) Partition usb disk/pen drive.
 +
 +
Partition drive using '''fdisk''' or other tool.
 +
 +
First parittion FAT type. It will be usefull or needed if loading kernel image from it.
 +
Second partition as Linux type.
 +
 +
Format first partition with '''mtools''' or other tool as VFAT type filesystem.
 +
Format second partition with '''ext2fsprogs'''.
  
 
3) Unpack rootfs image to linux partition on usb disk/pen drive.
 
3) Unpack rootfs image to linux partition on usb disk/pen drive.
 +
 +
Unpack image to second partition as '''root''' rights.
  
 
4) Put kernel image to TFTP service directory.
 
4) Put kernel image to TFTP service directory.
 +
  
 
5) Enable [http://wiki.samygo.tv/index.php?title=Enable_Serial_Console_on_non_CI%2B_Devices serial debug console].
 
5) Enable [http://wiki.samygo.tv/index.php?title=Enable_Serial_Console_on_non_CI%2B_Devices serial debug console].

Revision as of 08:19, 17 March 2010

Note: This instruction apply only to LExxB65x, LExxB75x, PSxxB65x TV series with CI only supported devices This is for advanced users and developers

Requirements:

  • Serial connection
  • Usb disk drive or pen drive (at least 256MB)
  • TFTP daemon 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:

1) Build rootfs image using SamyGO OE Framework.

Builded rootfs image is located in build/tmp/deploy/images directory. Filename looks like rootfs-sdp83-xxxxxxx.tar.gz.

2) Partition usb disk/pen drive.

Partition drive using fdisk or other tool.

First parittion FAT type. It will be usefull or needed if loading kernel image from it. Second partition as Linux type.

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

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

Unpack image to second partition as root rights.

4) Put kernel image to TFTP service directory.


5) Enable serial debug console.

6) Enter u-boot bootloader prompt shell.

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

Instruction is in progress!