• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: update Globalscale Ubuntu to Squeeze on NAND  (Read 9303 times)

Karma: 1
Posts: 22

View Profile
« on: August 29, 2012, 11:48:22 PM »


because Ubuntu on Sheevaplug is not supported, I decided to update my Sheevaplug to Debian Squeeze, on the NAND. I use the restore procedure to do that. This method only works with Globalescale, Ionics has different rootfs ! This method also updates the Sheevaplug to the current last kernel, 3.4.5.

All needed files are available here : https://docs.google.com/folder/d/0BzksAE8XyQoAbG1yVjFHRW40SDQ/edit


Your Sheevaplug need at least the Uboot 3.4.27. When you are in the Uboot prompt, and you enter the
command version, you may have this result:

Marvell>> version
U-Boot 1.1.4 (Dec 27 2009 - 22:03:21) Marvell version: 3.4.27 - pingtoo patch.01

uboot update if needed

- use the file provided here : uboot-3.4.27.bin
- put it on tftp server or USB key
- install it on your Sheevaplug from Uboot command
    from USB key
        usb start
        fatload usb 0:1 0x0800000 uboot-3.4.27.bin
        nand erase 0x0 0xa0000
        nand write 0x0800000 0x0 0xa0000
    from TFTP server
        set serverip
        set ipaddr
        tftpboot 0x0800000 uboot-3.4.27.bin
        nand erase 0x0 0xa0000
        nand write 0x0800000 0x0 0xa0000
- then, enter the command reset

sheevaplug update

- only for Globalescale original sheevaplug
- you'll need a USB key in FAT or FAT32
- put on it's root these files : uImage, modules.tar.gz, rootfs.tar.gz
        these is a 3.4.5 Linux Kernel and Squeeze rootfs
- plug these USB key to your Sheevaplug
- reboot your sheevaplug, and go to Uboot prompt
- set this command in uboot
        setenv bootargs_console 'console=ttyS0,115200n8'
        setenv mtdpartitions 'mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)'
        setenv bootroot_nand 'ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs'
        setenv bootload_nand 'nand read.e 0x00800000 0x00100000 0x00400000'
        setenv nand_boot 'setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootroot_nand); run bootload_nand; bootm 0x00800000'
        setenv recover_ramdisk 'root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand'
        setenv recover1 'setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset'
        setenv recover2 'run recover3; setenv bootcmd run nand_boot; saveenv; run recover5'
        setenv recover3 'run recover4; nand erase clean 0x00100000 0x00400000; nand write.e 0x00800000 0x00100000 0x00400000'
        setenv recover4 'usb start; fatload usb 0:1 0x00800000 uImage; fatload usb 0:1 0x01100000 initrd'
        setenv recover5 'setenv bootargs $(bootargs_console) $(mtdpartitions) $(recover_ramdisk); bootm 0x00800000 0x01100000'
        setenv bootcmd 'run recover1'

after few minutes, and some restart, you'll have a UBIFS system, with Linux kernel 3.4.5 (currently
the last update in August 2012) with Squeeze Debian.
The root password is always : nosoup4u
The directories /tmp and /var/log are tmpfs system. You can check them by the command df:
        Filesystem           1K-blocks      Used Available Use% Mounted on
        tmpfs                   256620         0    256620   0% /lib/init/rw
        udev                     10240       112     10128   2% /dev
        tmpfs                   256620         0    256620   0% /dev/shm
        rootfs                  472968    167008    301124  36% /
        tmpfs                   256620         0    256620   0% /tmp
        tmpfs                   256620        84    256536   1% /var/log
You can update the file /etc/fstab with this line (no set access time to file, to not write always on NAND)
        rootfs / rootfs rw,noatime,sync 0 0
If you have a proxy, you can create the file /etc/apt/apt.conf with these lines for example:
        Acquire::http::proxy "http://myproxy:1234/";
        Acquire::ftp::proxy "http://ftp://myproxy:1234/";
        Acquire::https::proxy "https://myproxy:1234/";
You can add softwares with apt-get command, but don't use the upgrade command. Because it wants to update
your kernel in 2.6.32 (August 2012), while you have a 3.4.5 kernel.

These updates will be done at your own risk. I decline all damages which can arrived during the

long life to the sheevaplug


Karma: 1
Posts: 22

View Profile
« Reply #1 on: January 28, 2013, 11:39:13 PM »


I add the initrd file in the google docs folder. You need to have it on your USB key if you want to do the actions describe in this post. Sorry for this miss.



Pages: [1]
Jump to: