mgazza
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 11, 2014 04:06AM |
mgazza
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 11, 2014 04:58AM |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 15, 2014 02:12PM |
Registered: 11 years ago Posts: 91 |
--- drivers/hwmon/Kconfig.orig 2014-01-09 20:35:23.000000000 +0100 +++ drivers/hwmon/Kconfig 2014-01-09 18:21:16.000000000 +0100 @@ -1555,7 +1555,7 @@ config SENSORS_NSA3XX tristate "ZyXEL NSA3xx fan speed and temperature sensors" - depends on (MACH_NSA310 || MACH_NSA320) && GENERIC_GPIO + depends on (MACH_NSA310 || MACH_NSA320) && GPIOLIB help If you say yes here you get support for hardware monitoring for the ZyXEL NSA3XX Media Servers.
CONFIG_SENSORS_NSA3XX=m
CONFIG_SENSORS_LM63=m
if [ -d /sys/class/leds/nsa320:orange:sys ]; then echo none > /sys/class/leds/nsa320:orange:sys/trigger if [ -d /sys/class/leds/nsa320:green:sys ]; then echo default-on > /sys/class/leds/nsa320:green:sys/trigger fi if [ -d /sys/class/leds/nsa320:red:hdd1 ]; then echo ide-disk1 > /sys/class/leds/nsa320:red:hdd1/trigger fi if [ -d /sys/class/leds/nsa320:red:hdd2 ]; then echo ide-disk2 > /sys/class/leds/nsa320:red:hdd2/trigger fi fi
NSA320> ide reset Reset IDE: Bus 0: OK Bus 1: OK Device 0: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Type: Hard Disk Supports 48-bit addressing Capacity: 524263.9 MB = 511.9 GB (1073692671 x 512) IDE read: device 0 not ready IDE read: device 0 not ready Device 1: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Type: Removable Hard Disk Supports 48-bit addressing Capacity: 524263.9 MB = 511.9 GB (1073692671 x 512) IDE read: device 1 not ready IDE read: device 1 not ready
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 15, 2014 11:20PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 16, 2014 08:13AM |
Registered: 12 years ago Posts: 232 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 16, 2014 10:41AM |
Registered: 12 years ago Posts: 232 |
racic
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 16, 2014 01:21PM |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 19, 2014 08:09AM |
Registered: 11 years ago Posts: 91 |
evtest /dev/input/event0 Input driver version is 1.0.1 Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100 Input device name: "gpio-keys" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 116 (KEY_POWER) Event code 133 (KEY_COPY) Event code 408 (KEY_RESTART) Properties: Testing ... (interrupt to exit) Event: time 1390139963.457824, type 1 (EV_KEY), code 133 (KEY_COPY), value 1 Event: time 1390139963.457824, -------------- SYN_REPORT ------------ Event: time 1390139964.627817, type 1 (EV_KEY), code 133 (KEY_COPY), value 0 Event: time 1390139964.627817, -------------- SYN_REPORT ------------ Event: time 1390139972.967857, type 1 (EV_KEY), code 133 (KEY_COPY), value 1 Event: time 1390139972.967857, -------------- SYN_REPORT ------------ Event: time 1390139974.237817, type 1 (EV_KEY), code 133 (KEY_COPY), value 0 Event: time 1390139974.237817, -------------- SYN_REPORT ------------
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 10:31AM |
Registered: 10 years ago Posts: 8 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 11:33AM |
Registered: 10 years ago Posts: 8 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 12:11PM |
Registered: 12 years ago Posts: 232 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 12:29PM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
bodhi
This tarball contains 4 files (the patch stays the same as in tld-3):
linux-image-3.12.0-kirkwood-tld-5_5.0_armel.deb
linux-headers-3.12.0-kirkwood-tld-5_5.0_armel.deb
config-3.12.0-kirkwood-tld-5
linux-3.12.0-tld-3-kirkwood.patch
nekitip
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 01:58PM |
fatload usb 0 0x800000 uImagethen make use of empty temporary hdd and put builds there instead of USB, so that you can then copy files to NAND from there (on my NSA310, none of 5 usb keys didn't work)
fatload usb 0 0x800000 vmlinuz-3.12.0-kirkwood-tld-5 nand erase 0x4640000 0x300000 nand write.e 0x800000 0x4640000 0x300000or just copy uImage file to NAND (vmlinuz-3.12.0-kirkwood-tld-5) and then later, insmod ftdi_sio.ko file?
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 03:13PM |
Registered: 13 years ago Posts: 161 |
nekitip
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 04:11PM |
setenv mainlineLinux yes setenv arcNumber 4022 # IMPORTANT - what is the correct arcNumber? set as per Peeter's detailed instruction saveenv resetand then put to NAND, using first fat partition (rembember, USB is not working at this point on some models).
fatload ide 0 0x800000 uImage.3.13 nand erase 0x4640000 0x300000 nand write.e 0x800000 0x4640000 0x300000 setenv bootargs 'console=ttyS0,115200 root=/dev/sda4' setenv bootcmd 'nand read.e 0x2000000 0x04640000 0x400000; bootm 0x2000000' saveenv resetIf I may wish :) since I haven't try your kernel, don't know if you already have it, but
[Global] listen = /dev/input/event0 [Keys] POWER = shutdown -h now COPY = sync OPTION = shutdown -r nowthe "option" key is probably reset key behind
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 20, 2014 04:38PM |
Registered: 13 years ago Posts: 161 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 21, 2014 09:24AM |
Registered: 10 years ago Posts: 8 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 21, 2014 09:34AM |
Registered: 10 years ago Posts: 8 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 21, 2014 09:43AM |
Registered: 13 years ago Posts: 161 |
root@debian:~# ls -l /usr/src/linux-headers-3.12.0-kirkwood-tld-5/include/linux/netdevice.h -rw-r--r-- 1 root root 97369 Nov 3 15:41 /usr/src/linux-headers-3.12.0-kirkwood-tld-5/include/linux/netdevice.h root@debian:~# ls -l /lib/modules/3.12.0-kirkwood-tld-5/build/include/linux/netdevice.h -rw-r--r-- 1 root root 97369 Nov 3 15:41 /lib/modules/3.12.0-kirkwood-tld-5/build/include/linux/netdevice.h
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 21, 2014 10:18AM |
Registered: 10 years ago Posts: 8 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 21, 2014 10:30AM |
Registered: 10 years ago Posts: 8 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 21, 2014 11:15AM |
Registered: 10 years ago Posts: 8 |
nekitip
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 22, 2014 01:01PM |
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.12.0-kirkwood-tld-5 -d /boot/initrd.img-3.12.0-kirkwood-tld-5 /boot/uInitrdbut I have ignored it
ln -s boot/vmlinuz-3.12.0-kirkwood-tld-5 vmlinuz ln -s boot/initrd.img-3.12.0-kirkwood-tld-5 initrd.imgbecause initrd I did not have.
fatload ide 0 0x800000 uimage nand erase 0x4640000 0x300000 nand write.e 0x800000 0x4640000 0x300000 resetnas will reset, starts to boot 3.12 kernel and gets stuck with:
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 23, 2014 03:03AM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 23, 2014 07:19AM |
Registered: 13 years ago Posts: 161 |
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 23, 2014 09:42AM |
Admin Registered: 13 years ago Posts: 19,107 |
nekitip
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 23, 2014 01:20PM |
make menuconfigit may be something like:
make menuconfig ARCH=armand also, I dont see how it will produce .deb file if it ever will, because it complains something about some undefined reference
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 23, 2014 05:48PM |
Registered: 13 years ago Posts: 161 |
fatload ide 0 0x800000 uimage farload ide 0 0x1100000 uinitrd setenv bootargs 'console=ttyS0,115200 root=/dev/sda4' bootm 0x800000 0x1100000
nekitip
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 25, 2014 08:32AM |
mkdir build cd build wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.tar.bz2 wget http://www.scintilla.utwente.nl/~petero/nsa310/config-good-3.5.1-nsa310 bzip2 -dc linux-3.12.tar.bz2 | tar -xf - cd linux-3.12 patch -p1 < ../linux-3.12.0-tld-3-kirkwood.patch cp ../config-good-3.5.1-nsa310 .config make menuconfig ARCH=arm ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make -j3 uImage modules ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make -j3 uImage modules_install INSTALL_MOD_PATH=../copy/ uImage is in arch/arm/boot/uImage modules in "copy" kernel folder needs to be copy to /lib/modules/3.12.0
ide reset fatload ide 0 0x800000 uimage-3.12 bootm 0x800000however, to completely replace Peeters kernel, it must be loaded to NAND, since my bootload cant load from USB
setenv bootcmd 'ide reset; (some sort of 2 sec pause) fatload ide 0 0x800000 uImage; bootm 0x800000'however, now it is not doable. I suspect it is because hdd is taking time to reset, and bootloader tries to load.
nekitip
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree) January 25, 2014 09:58AM |
setenv bootcmd 'ide reset; fatload ide 0 0x800000 /uimage-3.12; bootm 0x800000'save all and reset