Upgrading the sheevaplug bootloader

4 Oct

How to upgrade the bootloader version on the sheevaplug – just the raw log for now…


sudo minicom —device /dev/ttyUSB0

Marvell>> version

U-Boot 1.1.4 (Jul 14 2009 – 06:46:57) Marvell version: 3.4.16

Marvell>> print ethaddr
ethaddr=00:50:43:01:4C:70

Marvell>> usb start
(Re)start USB
USB: scanning bus for devices… 2 USB Device(s) found scanning bus for storage devices… 1 Storage Device(s) found

Marvell>> fatload usb 0:1 0×0800000 u-boot.kwb
reading u-boot.kwb
.
…………………………………..

428720 bytes read

Marvell>> nand erase 0×0 0×70000

NAND erase: device 0 offset 0×0, size 0×70000
Erasing at 0×60000 — 114% complete.
OK

Marvell>> nand write 0×0800000 0×0 0×70000

NAND write: device 0 offset 0×0, size 0×70000 458752 bytes written: OK

Marvell>> reset

Marvell>> version

U-Boot 2014.10+dfsg1-5 (Apr 07 2015 – 21:57:04)
Marvell-Sheevaplug
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25

Marvell>> setenv ethaddr 00:50:43:01:4C:70

Marvell>> saveenv
Saving Environment to NAND
Erasing NAND
Erasing at 0×80000 — 100% complete.
Writing to NAND… OK

Marvell>> reset
resetting …

U-Boot 2014.10+dfsg1-5 (Apr 07 2015 – 21:57:04)
Marvell-Sheevaplug

SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 512 MiB
MMC: MVEBU_MMC: 0
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Warning: Your board does not use generic board. Please read
doc/README.generic-board and take action. Boards not
upgraded by the late 2014 may break or be removed.
Hit any key to stop autoboot: 0

Marvell>> version

U-Boot 2014.10+dfsg1-5 (Apr 07 2015 – 21:57:04)
Marvell-Sheevaplug
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25

Marvell>> printenv
baudrate=115200
bootargs=console=ttyS0,115200 mtdparts=mtdparts=orion_nand:512K(uboot),512K(env),1M(script),6M(kernel),12M(ramdisk),4M(spare),-(rootfs)x_bootcmd_kernel=nand read 0×6400000 0×100000 0×300000 root=/dev/mtdblock3 rw rootfstype=jffs2
bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; ${x_bootcmd_usb}; bootm 0×6400000;
bootdelay=3
ethact=egiga0
ethaddr=00:50:43:01:4C:70
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200 mtdparts=mtdparts=orion_nand:512K(uboot),512K(env),1M(script),6M(kernel),12M(ramdisk),4M(spare),-(rootfs)x_bootcmd_kernel=nand read 0×6400000 0×100000 0×300000
x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2
x_bootcmd_usb=usb start

Environment size: 750/131068 bytes

Marvell>> mtdparts
mtdparts variable not set, see ‘help mtdparts’
no partitions defined

defaults:
mtdids : nand0=orion_nand
mtdparts: mtdparts=mtdparts=orion_nand:512K(uboot),512K(env),1M(script),6M(kernel),12M(ramdisk),4M(spare),-(rootfs)

  1. ######## ######## ######## ########
  1. insert usb stick with uImage and uInitrd
    1. ######## ######## ######## ########

Marvell>> usb start
(Re)start USB
USB0: USB EHCI 1.00
scanning bus 0 for devices… 2 USB Device(s) found scanning usb for storage devices… 1 Storage Device(s) found

Marvell>> fatload usb 0:1 0×00800000 /uImage
reading /uImage
2082425 bytes read in 146 ms (13.6 MiB/s)

Marvell>> fatload usb 0:1 0×01100000 /uInitrd
reading /uInitrd
5368784 bytes read in 334 ms (15.3 MiB/s)

Marvell>> setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most

Marvell>> bootm 0×00800000 0×01100000