Hi,
I recently bought a lacie wireless space device just for fun.
https://www.lacie.com/de/de/support/netw…wireless-space/
The device is listed in Lacie wiki but does not have its own entry
http://lacie-nas.org/doku.php
The serial pinout is the same as other lacie devices (pin 1 being the squared one). There is a J2 connector and I think it is quite the same as the other lacie devices (attached) having both serial and jtag.
Pin 2 (gnd) second from squared one
pin 7 (Rx)
pin 8 (Tx)
Speed: 115200
The stock bootlog (attached).
Pressing ctrl+C interrupts boot ptocess and giver Marvell u-boot prompt
printenv output (attached)
You may want to increase boot delay
Marvell>>
setenv bootdelay
3
Marvell>>
saveenv
The device is listed as having support in mainline u-boot but I can't find a howto to build u-boot for this device
http://lacie-nas.org/doku.php?id=uboot
So I tried to compile it myself:
I installed prerequisites for Ubuntu 20.04:
sudo apt-get install gawk wget git diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm picocom ncurses-dev lzop
gcc-arm-none-eabi
If i try to compile without external toolchain with the ubuntu package of version 20.04 it does not work out of the box as it complains of not finding refferal of gcc version 9 in the source files
/u-boot-lacie/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc9.h: No such file or directory
The Instructions from the lacie-wiki page on u-boot:
I created a compile folder /media/hala/compile/
then cd /media/hala/compile
git clone
http://git.lacie-nas.org/u-boot-lacie.git u-boot-lacie (this downloads the sourcecode into a new folder called u-boot-lacie;browsing the sourcecode I found that the source only supports a maximum version of gcc 4 so I downloaded an external toolchain from launchpad
I created a folder toolchains in my /media/hala/compile/ folder
then I cd to that folder
cd /media/hala/compile/toolchains
wget
https://launchpad.net/gcc-arm-embedded/4…3-linux.tar.bz2
tar -xjvf gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2
now I have the toolchain needed for crosscompile in /media/hala/compile/toolchains/gcc-arm-none-eabi-4_9-2014q4/bin/
I returned to my compile folder
cd /media/hala/compile/u-boot-lacie
and followed the instructions from
http://lacie-nas.org/doku.php?id=uboot
PATH=/media/hala/compile/toolchains/gcc-arm-none-eabi-4_9-2014q4/bin/:$PATH CROSS_COMPILE=arm-none-eabi- make wireless_space_config
PATH=/media/hala/compile/toolchains/gcc-arm-none-eabi-4_9-2014q4/bin/:$PATH CROSS_COMPILE=arm-none-eabi- make u-boot.kwb
surprisingly... in worked!
|
Code source
|
1
|
arm-none-eabi-objcopy --gap-fill=0xff -O binary u-boot u-boot.bintools/mkimage -n "/media/hala/compile/u-boot-lacie/"board/LaCie/wireless_space"/kwbimage.cfg" -T kwbimage \ -a 0x00600000 -e 0x00600000 -d u-boot.bin u-boot.kwbPreparing kirkwood boot image to boot from nandNand page size = 0x800Image Type: Kirkwood Boot from NAND Flash ImageData Size: 285452 Bytes = 278.76 kB = 0.27 MBLoad Address: 00600000Entry Point: 00600000
|
now i have new files
|
Code source
|
1
|
-rw-rw-r-- 1 fratzicu fratzicu 285452 mar 20 19:22 u-boot.bin-rw-rw-r-- 1 fratzicu fratzicu 285968 mar 20 19:22 u-boot.kwb-rw-rw-r-- 1 fratzicu fratzicu 1089 mar 20 19:22 u-boot.lds-rw-rw-r-- 1 fratzicu fratzicu 266427 mar 20 19:22 u-boot.map
|
in my folder
After connecting to serial console, I can login with
user admin and
password admin. I don't know how to connect as root.
During boot, There is a prompt to press a key to stop regular boot but there is no timeout, only 0.
$ cat /proc/cpuinfo
Processor : ARM926EJ-S rev 1 (v5l)
BogoMIPS : 799.53
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128
Hardware : wireless_space
Revision : 0002
Serial : 0000000000000000
$ cat /proc/cmdline
initrd=0x1200000 root=/dev/mtdblock3 ro console=ttyS0,115200 cap=gpt,lba64
Can you point me some commands to compile u-boot for this device?
Also, what jtag software could I use for this device?
Ce message a été modifié 7 fois. Dernière modification effectuée par "fratzicu" (20 mars 2021, 23:10)