* Ordinateur hôte Distribution de travail : Lubuntu 18.04 * Matériel SheevaPlug : https://fr.wikipedia.org/wiki/SheevaPlug * Liens https://www.cyrius.com/debian/kirkwood/sheevaplug/uboot-upgrade/ https://tadeubento.com/2018/sheevaplug-2018-upgrade-u-boot/ https://www.insecure.ws/linux/sheeva.html https://adufray.com/blog/2013/05/08/installing-debian-squeeze-on-a-sheevaplug

util01@station66:~$ dmesg
...
[59632.346653] usb 5-3: new full-speed USB device number 3 using ohci-pci
[59632.554230] usb 5-3: New USB device found, idVendor=9e88, idProduct=9e8f
[59632.554235] usb 5-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[59632.554237] usb 5-3: Product: SheevaPlug JTAGKey FT2232D B
[59632.554240] usb 5-3: Manufacturer: FTDI
[59632.554242] usb 5-3: SerialNumber: FTSMBLY2
[59632.991356] usbcore: registered new interface driver ftdi_sio
[59632.991385] usbserial: USB Serial support registered for FTDI USB Serial Device
[59632.991538] usb 5-3: Ignoring serial port reserved for JTAG
[59632.991578] ftdi_sio 5-3:1.1: FTDI USB Serial Device converter detected
[59632.991627] usb 5-3: Detected FT2232C
[59632.994301] usb 5-3: FTDI USB Serial Device converter now attached to ttyUSB1
util01@station66:~$ screen /dev/ttyUSB1 115200
...
[ 132.813033] SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount show-blocked-tasks(W) dump-ftrace-buffer(Z)
Debian GNU/Linux 7 station99 ttyS0
station99 login:
util01@station66:~$ mkdir SHEEVA
util01@station66:~$ cd SHEEVA/
util01@station66:~/SHEEVA$
util01@station66:~/SHEEVA$ wget http://ftp.debian.org/debian/dists/stretch/main/installer-armel/current/images/kirkwood/u-boot/sheevaplug/u-boot.kwb
util01@station66:~/SHEEVA$ screen /dev/ttyUSB1 115200
Marvell>>
Marvell>> version
U-Boot 2011.12 (Mar 11 2012 - 18:59:46)
Marvell-Sheevaplug - eSATA - SD/MMC
gcc (Debian 4.6.3-1) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Marvell>>
Marvell>> usb start
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Marvell>>
Marvell>> fatload usb 0:1 0x0800000 u-boot.kwb
reading u-boot.kwb
511828 bytes read
Marvell>> nand erase 0x0 0x80000
NAND erase: device 0 offset 0x0, size 0x80000
Erasing at 0x60000 -- 100% complete.
OK
Marvell>> nand write 0x0800000 0x0 0x80000
NAND write: device 0 offset 0x0, size 0x80000
524288 bytes written: OK
Marvell>> reset
resetting ...
U-Boot 2016.11+dfsg1-4 (Mar 27 2017 - 18:39:51 +0000)
Marvell-Sheevaplug
SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 512 MiB
MMC: MVEBU_MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: egiga0
Error: egiga0 address not set.
88E1116 Initialized on egiga0
IDE: ide_preinit failed
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 06400000 ...
Image Name: Linux-2.6.22.18
Created: 2009-03-19 9:18:16 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2106696 Bytes = 2 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
Uncompressing Linux.................................................................................................................................... done, booting the kernel.
util01@station66:~/SHEEVA$ screen /dev/ttyUSB1 115200
=> ver
U-Boot 2016.11+dfsg1-4 (Mar 27 2017 - 18:39:51 +0000)
Marvell-Sheevaplug
gcc (Debian 6.3.0-10) 6.3.0 20170321
GNU ld (GNU Binutils for Debian) 2.28
=> setenv ethaddr 00:50:43:01:69:B7
=> setenv macaddr 00:50:43:01:69:B7
=> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x80000 -- 100% complete.
Writing to NAND... OK
=> reset
resetting ...
U-Boot 2016.11+dfsg1-4 (Mar 27 2017 - 18:39:51 +0000)
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
IDE: ide_preinit failed
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 06400000 ...
Image Name: Linux-2.6.22.18
Created: 2009-03-19 9:18:16 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2106696 Bytes = 2 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
Uncompressing Linux.................................................................................................................................... done, booting the kernel.
Durée d'installation : Très long ! Environs 2 heures.
util01@station66:~/SHEEVA$ wget http://ftp.debian.org/debian/dists/stretch/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uImage
util01@station66:~/SHEEVA$ wget http://ftp.debian.org/debian/dists/stretch/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd
util01@station66:~/SHEEVA$ screen /dev/ttyUSB1 115200
U-Boot 2016.11+dfsg1-4 (Mar 27 2017 - 18:39:51 +0000)
Marvell-Sheevaplug
gcc (Debian 6.3.0-10) 6.3.0 20170321
GNU ld (GNU Binutils for Debian) 2.28
=>
=> usb start
starting 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
=> fatload usb 0:1 0x00800000 /uImage
reading /uImage
2076202 bytes read in 94 ms (21.1 MiB/s)
=> fatload usb 0:1 0x01100000 /uInitrd
reading /uInitrd
11710900 bytes read in 407 ms (27.4 MiB/s)
=> setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most
=> bootm 0x00800000 0x01100000
Démarrage du processus classique d'installation de Debian.

util01@station66:~/SHEEVA$ screen /dev/ttyUSB1 115200
=> setenv bootargs_console console=ttyS0,115200
=> setenv bootcmd_mmc 'ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd'
=> setenv bootcmd 'setenv bootargs ${bootargs_console}; run bootcmd_mmc; bootm 0x00800000 0x01100000'
=> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0x80000 -- 100% complete.
Writing to NAND... OK
=> run bootcmd
...
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.
[ 13.920097] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 13.929933] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Debian GNU/Linux 9 sheeva ttyS0
Debian GNU/Linux 9 sheeva ttyS0
sheeva login: util01
Password:
Linux sheeva 4.9.0-14-marvell #1 Debian 4.9.246-2 (2020-12-17) armv5tel
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
util01@sheeva:~$ [ 130.798556] random: crng init done
[ 130.801984] random: 7 urandom warning(s) missed due to ratelimiting
util01@sheeva:~$
util01@sheeva:~$ ip a
1: lo: <loopback,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <broadcast,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:50:43:01:69:b7 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.15/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::250:43ff:fe01:69b7/64 scope link
valid_lft forever preferred_lft forever
util01@sheeva:~$
util01@station66:~$ ssh util01@192.168.1.15
The authenticity of host '192.168.1.15 (192.168.1.15)' can't be established.
ECDSA key fingerprint is SHA256:TIv8s4ZyZEnHeIMjoMA2vxNwp0J0n+V4GmHukTwEoGw.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.15' (ECDSA) to the list of known hosts.
util01@192.168.1.15's password:
Linux sheeva 4.9.0-14-marvell #1 Debian 4.9.246-2 (2020-12-17) armv5tel
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 4 08:02:01 2021
util01@sheeva:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 245M 0 245M 0% /dev
tmpfs 51M 1.5M 49M 3% /run
/dev/mmcblk0p2 6.7G 748M 5.6G 12% /
tmpfs 251M 0 251M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 251M 0 251M 0% /sys/fs/cgroup
/dev/mmcblk0p1 236M 48M 176M 22% /boot
tmpfs 51M 0 51M 0% /run/user/1000
util01@sheeva:~$
util01@sheeva:~$ su
Password:
root@sheeva:/home/util01# apt-get install mc screen vim
root@sheeva:/home/util01# halt
Connection to 192.168.1.15 closed by remote host.
Connection to 192.168.1.15 closed.
util01@station66:~$
Sous Screen :
...
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Reached target Shutdown.
[ 1101.974340] systemd-shutdow: 22 output lines suppressed due to ratelimiting
[ 1107.696250] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[ 1107.713233] systemd-journald[124]: Received SIGTERM from PID 1 (systemd-shutdow).
[ 1107.728266] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[ 1107.744487] systemd-shutdown[1]: Unmounting file systems.
[ 1107.751159] systemd-shutdown[1]: Remounting '/' read-only with options 'errors=remount-ro,data=ordered'.
[ 1108.246687] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro,data=ordered
[ 1108.272471] systemd-shutdown[1]: Remounting '/' read-only with options 'errors=remount-ro,data=ordered'.
[ 1108.282271] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro,data=ordered
[ 1108.289842] systemd-shutdown[1]: All filesystems unmounted.
[ 1108.295474] systemd-shutdown[1]: Deactivating swaps.
[ 1108.300669] systemd-shutdown[1]: All swaps deactivated.
[ 1108.305965] systemd-shutdown[1]: Detaching loop devices.
[ 1108.316088] systemd-shutdown[1]: All loop devices detached.
[ 1108.336656] reboot: System halted