Hi,
I have an NSA325 and would like to run Debian on it.
I followed your tutorial: https://forum.doozan.com/read.php?2,12096 make progress but not quite there yet:
Serial connection
I needed to switch tx and rx and ha to move my cables away from electrical interferences. The serial works great now.
uBoot
I was unable to kwboot the 2016 uboot to the nas. Executing ' run to_stock' via serial helped.
I'm now on uBoot 2012 version 1.1.4
I can kwboot the 2016 and 2017 versions. But after reboot I'm back on 2012 version.
Als step 4. Create uImage with embedded DTB did not work for me.
Debian
I once did have debian start from the usb stick. I could login and apt-get update, but after reboot it was gone and I was back on uBoot 2012. Sometimes with prompt NSA325 and sometimes in BusyBox 1.17.2.
History of the nasA
After stock I hav also used ffp and entware-ng.
When I see the bootup (without harddrives) over serial of uBoot 2012, Marvell, there is mention of directories I used to have on the nas. But since then both drives have been formatted.
I quess there might be something with the env settings, but I don't have a clue where to start.
Here is printenv after kwboot of uboot 2017 and any help is appreciated.
And on uBoot 1.1.4
I have an NSA325 and would like to run Debian on it.
I followed your tutorial: https://forum.doozan.com/read.php?2,12096 make progress but not quite there yet:
Serial connection
I needed to switch tx and rx and ha to move my cables away from electrical interferences. The serial works great now.
uBoot
I was unable to kwboot the 2016 uboot to the nas. Executing ' run to_stock' via serial helped.
I'm now on uBoot 2012 version 1.1.4
I can kwboot the 2016 and 2017 versions. But after reboot I'm back on 2012 version.
Als step 4. Create uImage with embedded DTB did not work for me.
Debian
I once did have debian start from the usb stick. I could login and apt-get update, but after reboot it was gone and I was back on uBoot 2012. Sometimes with prompt NSA325 and sometimes in BusyBox 1.17.2.
History of the nasA
After stock I hav also used ffp and entware-ng.
When I see the bootup (without harddrives) over serial of uBoot 2012, Marvell, there is mention of directories I used to have on the nas. But since then both drives have been formatted.
I quess there might be something with the env settings, but I don't have a clue where to start.
Here is printenv after kwboot of uboot 2017 and any help is appreciated.
baudrate=115200 boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_syslinux_conf=extlinux/extlinux.conf boot_targets=host1 host0 bootcmd=run distro_bootcmd bootcmd_host0=setenv devnum 0; run host_boot bootcmd_host1=setenv devnum 1; run host_boot bootdelay=2 bootm_size=0x10000000 devnum=0 distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ethact=egiga0 ethaddr=00:00:11:22:33:44 fdt_addr_r=0xc00000 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi ipaddr=1.2.3.4 kernel_addr_r=0x1000000 pxefile_addr_r=0x2000 ramdisk_addr_r=0x2000000 sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scriptaddr=0x1000 scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd stderr=serial stdin=serial stdout=serial virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi Environment size: 2467/131068 bytes
And on uBoot 1.1.4
Marvell>> printenv bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init bootdelay=2 baudrate=115200 loads_echo=0 ipaddr=10.4.52.165 serverip=10.4.52.7 rootpath=/srv/ubuntu netmask=255.255.255.0 nandEcc=1bit MODEL_ID=AA03 PRODUCT_NAME=NSA-325 FEATURE_BIT=00 CONTRY_TYPE=FF VENDOR_NAME=MitraStar Technology Corp. run_diag=yes ethaddr=EC:43:F6:AA:78:3E console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) ethprime=egiga0 bootargs_root=root=/dev/nfs rw bootargs_end=:::orion:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; lcd0_enable=0 lcd0_params=640x480-16@60 ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes ethact=egiga0 arcNumber=4495 bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 rw rootwait loglevel=8 bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr) bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr) to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset bootcmd='run bootcmd_linux' stdin=serial stdout=serial stderr=serial mainlineLinux=yes enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no disaMvPnp=no enaAutoRecovery=yes kernel_addr=0xc80000 pcieTune=no pcieTune1=no Environment size: 2427/131068 bytes