New IT forum
27 June 2022, 05:43:53 pm *
Welcome, %1$s. Please login or register.

: MiraBox now in stock.
 
Pages: [1]

Author Topic: How to create a bootable microSD card?  (Read 3924 times)

simoncn

  • Newbie
  • *
  • Posts: 5
How to create a bootable microSD card?
« on: 30 January 2014, 09:55:38 pm »

I would like to create a bootable microSD card for the MiraBox containing Debian wheezy. How should the card be partitioned, and what are the recommended partition types/sizes/offsets? Do I need to write uboot, uImage and rootfs to the card, or just uImage and rootfs? Any information or pointers would be much appreciated.
Logged

noidea

  • Newbie
  • *
  • Posts: 11
Re: How to create a bootable microSD card?
« Reply #1 on: 31 January 2014, 06:10:52 pm »

  Hello,

I use the "restore" procedure to boot from SD Card. See here : https://newit.co.uk/forum/index.php/topic,3880.0.html

On th e first partition (fat), I put the uImage and on the second one I extracted the rootfs tarball (made with debootstrap but I think you can dowload it)

Then I changed the Uboot boot commands :

Quote
setenv bootcmd 'usb start; fatload usb 1 0x6400000 uImage; bootm 0x6400000'
setenv bootargs 'console=ttyS0,115200 root=/dev/sdb2 rootwait'
saveenv

« Last Edit: 31 January 2014, 06:13:08 pm by noidea »
Logged

simoncn

  • Newbie
  • *
  • Posts: 5
Re: How to create a bootable microSD card?
« Reply #2 on: 02 February 2014, 08:12:48 pm »

  Hello,

I use the "restore" procedure to boot from SD Card. See here : https://newit.co.uk/forum/index.php/topic,3880.0.html

On th e first partition (fat), I put the uImage and on the second one I extracted the rootfs tarball (made with debootstrap but I think you can dowload it)

Then I changed the Uboot boot commands :

setenv bootcmd 'usb start; fatload usb 1 0x6400000 uImage; bootm 0x6400000'
setenv bootargs 'console=ttyS0,115200 root=/dev/sdb2 rootwait'
saveenv

Thanks very much for your help. I am now able to boot from a microSD card.
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!