by musv » Sat Jul 23, 2016 3:40 pm
Hm, maybe I get this thing installed by myself.
My first problem: I don't get direct access to the U-Boot loader. With the serial converter connected the NSA326 doesn't start. If I plug the converter after some seconds while the NSA is booting, I get access to the system. fw_printenv etc. works.
So my first plan is to copy the original firmware to a harddisk and change to U-Boot load to extload to be able to boot the whole system from a harddisk instead of the NAND flash.
Copying the filesystem isn't the problem. But the kernel partition is a raw partition, which I didn't manage to mount.
$this->bbcode_second_pass_code('', 'cat /proc/mtd
mtd0: 00200000 00020000 "U-Boot"
mtd1: 00200000 00020000 "U-Boot env"
mtd2: 00a00000 00020000 "Config"
mtd3: 00f00000 00020000 "Kernel-1"
mtd4: 06a00000 00020000 "RootFS-1"
mtd5: 00f00000 00020000 "Kernel-2"
mtd6: 06a00000 00020000 "RootFS-2"')
Mounted is after starting the system:
$this->bbcode_second_pass_code('', 'Filesystem Size Used Available Use% Mounted on
ubi4:ubi_rootfs1 88.1M 44.5M 43.7M 50% /firmware/mnt/nand
/dev/loop0 137.5M 119.9M 17.6M 87% /ram_bin
/dev/loop0 137.5M 119.9M 17.6M 87% /usr
/dev/loop0 137.5M 119.9M 17.6M 87% /lib/security
/dev/loop0 137.5M 119.9M 17.6M 87% /lib/modules
/dev/loop0 137.5M 119.9M 17.6M 87% /lib/locale
/dev/ram0 5.0M 4.0K 5.0M 0% /tmp/tmpfs
/dev/ram0 5.0M 4.0K 5.0M 0% /usr/local/etc
ubi2:ubi_config 2.2M 68.0K 2.0M 3% /etc/zyxel')
So, how do get the kernel out of the raw partition to copy it to my harddisk? Sorry for the basic answers. But I'm still a beginner in the embedded stuff.