KeithMnemonic / seagate-nas-debian

3 stars 0 forks source link

Improve docs #1

Open tomhobson opened 3 years ago

tomhobson commented 3 years ago

Hey, I found this repo and it looks like you've done exactly what I want to. But I'm not quite sure where to start?

If you could give a few more details and each step that would be amazing (also drop a link so I can buy you a beer)

zysimplelife commented 1 year ago

Since this box has no any display interface, you need connect to UARY interface in the board to get console output, by using any adapter that you can find. There is a picture in this repository which is very helpful. It shows how to connect to different pin. Also how to config UART to receive/send data.

Then you need a kernel and a rootfs to boot it up. Recently I managed to boot it up using kernel from Tommy https://www.dropbox.com/sh/vc0suib2su60b0d/AAA2lXRE2j5DfwO-VVFWVeYEa?dl=0 root fs from https://github.com/KL-Yang/seagate_central_linux. Notice that you need add root user root/root in to /etc/shadow for example root:$6$9Sylg71z78hr75oE$Qo8U4n9cZ1r.wY9mVoGSrhVVMjvQ92Apw/14r2v3/Tjv17q9inxP1AFwHxoqyrDc3oNTSJAeVG8IZJuKUP31j.:19313:0:99999:7:::

After that, you can use Uboot command to boot system via UARY interface. Following is the boot env I am using now.

boot env tftp
content_copy
setenv tftp_serverip 192.168.50.53
setenv ipaddr 192.168.50.222
setenv serverip 192.168.50.53
setenv bootargs console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda3
tftp 0x28000000 uImage441; bootm 0x28000000   ## Tommy
boot env local disk
content_copy
setenv loaduimage 'fatload scsi 0 0x28000000 uimage441'
setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000'
setenv netboot_cmd 'run bootcmd_scsi'
setenv netboot 1  # workaround to auto boot on disk
saveenv  
KeithMnemonic commented 1 year ago

Even when I had a kernel booting via tftp, the box was never stable and I could not get network to consistently work. I have since recycled these and moved onto a RPI4 NAS solution.