Reflashing GlobalScale Mirabox filesystem
I just worked my way through reflashing the mirabox and figured I’d post some instructions on how to do it. I’ve used the descriptions from this http://www.newit.co.uk/forum/index.php?topic=3880.0 post but found it to be lacking a few steps that could be construed as obvious… perhaps. Especially the use of ubifs is quite new to me, even though the commands are quite straight forward I got snagged up a bit in understanding how it works.
I’ve used the following rescue disk image:
https://docs.google.com/file/d/0B0imSF-34b8dZEc0SFo3N1Fzb0E/edit
And this rootfs image:
http://code.google.com/p/mirabox/downloads/list
Download and install the rescue disk on a microSD card:
- fdisk the microSD, create on FAT16 partition of 100mb size, the rest of the device as EXT3.
- Unpack the rescue disk
- Copy the mirabox file to the FAT16 partition
- Extract the rootfs.tgz file to the EXT3 partition.
- sync and umount the microSD card
- Connect a USB flash device to the computer
- Extract the rootfs image downloaded above
- Copy the rootfs to the USB flash device.
- Disconnect USB device.
- Connect micro-sd with mirabox kernel and rootfs to mirabox
- Plug in the mirabox to a computer via USB.
- Start the mirabox
- Hit a key at uboot
- >> set bootcmd ‘usb start; fatload usb 1 0x6400000 mirabox; bootm 0x6400000’
- >> set bootargs ‘console=ttyS0,115200 root=/dev/sdb2 rootwait’
- >> boot
- login as root password nosoup4u
- connect USB disk with rootfs on it to mirabox
- # cd /media/usbX where the rootfs img is located
- # ubiformat /dev/mtd2 –flash-image=rootfs-debian6.0-gti-mirabox-v5-0-1-120924.img
- # sync
- # reboot
- disconnect USB disk and remove devices.
- login to your hopefully working new filesystem using root/nosoup4u credentials.