Booting to sdcard

From WikiWiki

Jump to: navigation, search

Contents

[edit] Booting to a SD card on a TS-7260

Before proceeding please ensure a precompiled kernel is available, as well as an initial ramdisk. Precompiled ts11 kernels are available below in the downloads section, as well as an example initial ramdisk. The example initial ramdisk mounts and pivots to the third partition of the SD card. The third partition was used because Technologic System's SD images store Debian on the third partition. See the Downloads section below for Technologic's default shipping SD card image as of Nov. 14 2006(Use dd to write the image to an SD card). It is recommend that one load the kernel and initial ramdisk from RAM before modifying the onboard flash. If you have any questions regarding the Redboot commands used below please see the references section for links to the Redboot User's Guide as well as documentation for each of the commands used in this article.


[edit] Load a kernel and initial ramdisk to RAM from a TFTP server

  1.) Load a kernel to RAM.
     load -r -b 0x00218000 -h serverIPaddress file_name
  2.) Load an initial ramdisk to RAM.
     load -r -b 0x00600000 -h serverIPaddress file_name
  3.) Execute a kernel
     exec -r 0x00600000 -s ramdisklength -b 0x00218000 -l loadlength -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"

[edit] Load a kernel and initial ramdisk to onboard flash from a TFTP server

  1.) Delete the old kernel.
     fis delete vmlinux
  2.) Load an initial ramdisk to RAM.
     load -r -b 0x00600000 -h serverIPaddress file_name
  3.) Write an initial ramdisk to flash.
     fis create -b 0x00600000 -l length initrd
  4.) Load a kernel to RAM.
     load -r -b 0x00218000 -h serverIPaddress file_name
  5.) Write a kernel to flash.
     fis create -b 0x00218000 -l length vmlinux

[edit] Load a kernel and initial ramdisk from onboard flash

  1.) Load an initial ramdisk from flash.
     fis load initrd
  2.) Load a kernel from flash.
     fis load vmlinux
  3.) Execute a kernel
     exec -r 0x00600000 -s ramdisklength -b 0x00218000 -l loadlength -c "console=ttyAM0,115200 root=/dev/ram0 init=/linuxrc rw"


[edit] Downloads

   [| zImage-7260-ts11|] - Default ts11 kernel for a TS-7260 with 512 byte sector size NAND flash (as of Nov. 14, 2006 this is a TS-7260 with 32MB flash chip).
   [| zImage-7260_2k-ts11|] - Default ts11 kernel for a TS-7260 with 2KB sector size NAND flash (as of Nov. 14, 2006 this is a TS-7260 with 64MB flash chip or larger).
   [| ts7260-sdcard-initrd-1.03.gz|] - Example initial ramdisk for TS-7260 SD card boot.
   [| fastboot-7300-sdcard-7-6-2006.dd.bz2 |] - SD card dd image(Debian 3.1).

[edit] References

  [| Redboot User's Guide |]
  [| fis delete command |]
  [| fis create command |]
  [| load command |]
  [| exec command |]
Personal tools