Re: NSA 325 V2 Debian Is Possible! August 14, 2015 05:17AM |
Admin Registered: 13 years ago Posts: 18,997 |
fw_printenv
Re: NSA 325 V2 Debian Is Possible! August 14, 2015 06:43AM |
Registered: 13 years ago Posts: 37 |
> fw_printenv >>
root@debian:~# fw_printenv Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200 root@debian:~#
Re: NSA 325 V2 Debian Is Possible! August 14, 2015 07:26AM |
Registered: 9 years ago Posts: 295 |
socket options = TCP_NODELAY IPTOS_LOWDELAY min receivefile size = 128k use sendfile = yes use mmap = yes
Re: NSA 325 V2 Debian Is Possible! August 14, 2015 12:13PM |
Registered: 9 years ago Posts: 298 |
Re: NSA 325 V2 Debian Is Possible! August 14, 2015 06:03PM |
Admin Registered: 13 years ago Posts: 18,997 |
uname -a mount cat /etc/fw_env.config
Re: NSA 325 V2 Debian Is Possible! August 15, 2015 12:09AM |
Registered: 13 years ago Posts: 37 |
root@debian:~# uname -a Linux debian 3.16.0-kirkwood-tld-2 #2 PREEMPT Sun Aug 31 18:56:01 PDT 2014 armv5tel GNU/Linux root@debian:~# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=63198,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=51176k,mode=755) /dev/disk/by-label/rootfs on / type ext4 (rw,noatime,errors=remount-ro,data=ordered) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102340k) tmpfs on /tmp type tmpfs (rw,relatime) rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) root@debian:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0000 0x20000 0x20000 [\code] Thanks for your support.
Re: NSA 325 V2 Debian Is Possible! August 15, 2015 03:28AM |
Admin Registered: 13 years ago Posts: 18,997 |
bootcmd_linux=setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /uImage; ext2load usb 0:1 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000 bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr) bootcmd='run bootcmd_linux'
setenv bootcmd 'run bootcmd_linux; run bootcmd_stock' boot
cat /proc/cmdline cat /proc/mtd cat /etc/fw_env.config
Re: NSA 325 V2 Debian Is Possible! August 15, 2015 04:17AM |
Registered: 13 years ago Posts: 37 |
setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; resetAfter that I retried your command and now it boots always in stock. Have I done something wrong?
Re: NSA 325 V2 Debian Is Possible! August 15, 2015 07:49AM |
Registered: 11 years ago Posts: 80 |
Re: NSA 325 V2 Debian Is Possible! August 15, 2015 04:29PM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv bootcmd 'setenv mainlineLinux yes; run bootcmd_linux; setenv mainlineLinux no; run bootcmd_stock' bootSee if this works. And post the serial boot log when you boot without the USB.
Re: NSA 325 V2 Debian Is Possible! August 16, 2015 10:08AM |
Registered: 13 years ago Posts: 37 |
> setenv bootcmd 'setenv mainlineLinux yes; run > bootcmd_linux; setenv mainlineLinux no; run > bootcmd_stock' > boot >> See if this works. And post the serial boot log
screen -L /dev/ttyUSB0 115200
Re: NSA 325 V2 Debian Is Possible! August 16, 2015 06:25PM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv bootcmd 'setenv mainlineLinux yes; setenv arcNumber 4495; saveenv; run bootcmd_linux; setenv mainlineLinux no; setenv arcNumber 4495; saveenv; run bootcmd_stock' bootThe saveenv above is what I want to avoid, but if stock u-boot can't handle it, then you'll have no choice.
Re: NSA 325 V2 Debian Is Possible! August 17, 2015 01:18PM |
Registered: 13 years ago Posts: 37 |
> setenv bootcmd 'setenv mainlineLinux yes; setenv > arcNumber 4495; saveenv; run bootcmd_linux; setenv > mainlineLinux no; setenv arcNumber 4495; saveenv; > run bootcmd_stock' > boot >> The saveenv above is what I want to avoid,
Re: NSA 325 V2 Debian Is Possible! August 17, 2015 08:34PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: NSA 325 V2 Debian Is Possible! August 18, 2015 03:54AM |
Registered: 13 years ago Posts: 37 |
Re: NSA 325 V2 Debian Is Possible! August 18, 2015 04:21AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: NSA 325 V2 Debian Is Possible! August 20, 2015 05:24AM |
Registered: 9 years ago Posts: 298 |
Re: NSA 325 V2 Debian Is Possible! August 24, 2015 07:28AM |
Registered: 13 years ago Posts: 37 |
Re: NSA 325 V2 Debian Is Possible! August 26, 2015 02:39AM |
Registered: 9 years ago Posts: 298 |
Re: NSA 325 V2 Debian Is Possible! August 28, 2015 05:36AM |
Registered: 13 years ago Posts: 37 |
Re: NSA 325 V2 Debian Is Possible! August 28, 2015 09:53AM |
Registered: 9 years ago Posts: 295 |
Re: NSA 325 V2 Debian Is Possible! August 28, 2015 10:50AM |
Registered: 13 years ago Posts: 37 |
root@ubuntu-dell:/home/dieter# fdisk -l /dev/sde Platte /dev/sde: 4184 MByte, 4184342528 Byte 129 Köpfe, 62 Sektoren/Spur, 1021 Zylinder, zusammen 8172544 Sektoren Einheiten = Sektoren von 1 × 512 = 512 Bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Festplattenidentifikation: 0x0004a9a8 Gerät boot. Anfang Ende Blöcke Id System /dev/sde1 2048 206847 102400 83 Linux /dev/sde2 206848 8171519 3982336 83 Linux root@ubuntu-dell:/home/dieter# mount | grep sde /dev/sde1 on /media/dieter/b3d3c5f6-2879-4e20-b1fc-d17a2dd8ff54 type ext2 (rw,nosuid,nodev,uhelper=udisks2) /dev/sde2 on /media/dieter/rootfs type ext4 (rw,nosuid,nodev,uhelper=udisks2) root@ubuntu-dell:/home/dieter#
Re: NSA 325 V2 Debian Is Possible! August 28, 2015 01:02PM |
Registered: 9 years ago Posts: 295 |
ext2load usb 0:1 0x800000 /uImage ext2load usb 0:1 0x1100000 /uInitrd bootm 0x800000 0x1100000Edited 1 time(s). Last edit at 08/28/2015 01:02PM by pengu.
Re: NSA 325 V2 Debian Is Possible! August 28, 2015 04:25PM |
Admin Registered: 13 years ago Posts: 18,997 |
printenvand then let it boot all the way
boot
Re: NSA 325 V2 Debian Is Possible! August 29, 2015 11:18AM |
Registered: 13 years ago Posts: 37 |
Re: NSA 325 V2 Debian Is Possible! August 29, 2015 06:36PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
B. Flashing default u-boot envs image
Quote
uboot.2014.07-tld-2.environment.bodhi.tar
uboot.2014.07-tld-2.environment.img (the default envs image to be flashed) uboot.2014.07-tld-2.environment (the content of the default envs in text format)
cp -a uboot.2014.07-tld-2.environment /media/sdb1/boot/uEnv.txt sync
run bootcmd_uenv setenv arcNumber 4495 setenv machid
boot
saveenv boot
Re: NSA 325 V2 Debian Is Possible! August 30, 2015 01:17AM |
Registered: 13 years ago Posts: 37 |
root@ubuntu-dell:/media/dieter# diff /media/dieter/rootfs/boot/uEnv.txt uboot.2014.07-tld-2.environment 1,2c1,2 < arcNumber=4495 < machid= --- > arcNumber=2097 > machid=0x831Now at least it finds kernel and ramdisk, but stucks on booting:
USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 2865664 bytes read in 651 ms (4.2 MiB/s) 6535284 bytes read in 556 ms (11.2 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.18.5-kirkwood-tld-1 Created: 2015-02-08 9:02:01 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2865600 Bytes = 2.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.18.5-kirkwood-tld-1 Created: 2015-02-19 1:49:36 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6535220 Bytes = 6.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x0000118f). Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.Maybe it's related to the fact that I just unpacked the 3.18.5 package to the usb stick as I have no running system on NSA325 to create the correct kernel with your descriptions
Re: NSA 325 V2 Debian Is Possible! August 30, 2015 03:48AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
4. Create uImage with embbeded DTB (If this is not first time installation, please see Note 2 below).
I'm using the GoFlex Net booting with USB drive as an example here. Please replace its name (kirkwood-goflexnet.dtb) with the box you are installing on (for example, kirkwood-pogo_e02.dtb). Look inside /media/sdb1/boot/dts/ for the correct DTB file name for your box.
cd /media/sdb1/boot
cp -a zImage-3.18.5-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt uImage
sync
apt-get install mkimage
cat dts/kirkwood-nsa325.dtb >> zImage.fdt
Re: NSA 325 V2 Debian Is Possible! August 30, 2015 05:21AM |
Registered: 13 years ago Posts: 37 |
Re: NSA 325 V2 Debian Is Possible! August 30, 2015 03:17PM |
Admin Registered: 13 years ago Posts: 18,997 |