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.
Comments
2 Comments on Reflashing GlobalScale Mirabox filesystem
-
Johannes Ernst on
Sat, 13th Jul 2013 07:00
-
Oskar Andreasson on
Sat, 13th Jul 2013 09:38
Any idea how to recompile kernel, run a distro other than debian, etc … ? Also, how did you figure out the steps above? It’s not like the Mirabox comes with any instructions! 🙁
Hi Johannes,
I agree, the documentation is really lacking, and the device isn’t really ready for end-user usage. I think it could be, but it’s not, and the main thing I see holding it back is the very weird changes they make to the filesystem layouts etc (adding scripts which doesn’t work if you do apt-get upgrade for example). Personally, that’s one of the first things I do and winding up with a bricked unit as soon as you do that is… not funny :).
Anyways, as for your questions, some of the stuff I already knew since I work a lot with embedded linux platforms (albeit never this specific CPU/system/brand before except for the guruplug), and most of the stuff I found out by doing a lot of googling. There isn’t a whole lot of information around, but there is some. For example, here’s a great start to look at to compile your own kernel: http://www.newit.co.uk/forum/index.php?topic=4036.0
There do seem to be some issues with building your own kernel though, but I guess you’ll find out better on your own that I will be able to (I left the miraboxes at work and won’t be able to touch them for a few months).
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
You must be logged in to post a comment.