bodhi, i will stick with 5.5.1. everything i wanted works there. thank you for your support!by damsma - Debian
bodhi, how can i fix that? root@debian:/lib/modules/5.12.6-kirkwood-tld-1/build# make menuconfig UPD scripts/kconfig/mconf-cfg HOSTCC scripts/kconfig/mconf.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialogby damsma - Debian
ok.. figured it out root@debian:/lib/modules/5.2.9-kirkwood-tld-1# ln -s /usr/src/linux-headers-5.2.9-kirkwood-tld-1 buildby damsma - Debian
the whole "build" directory is missing root@debian:/lib/modules/5.2.9-kirkwood-tld-1# ls -la total 2512 drwxr-xr-x 3 root root 4096 Aug 24 2019 . drwxr-xr-x 3 root root 4096 Jun 15 10:21 .. drwxr-xr-x 11 root root 4096 Aug 24 2019 kernel -rw-r--r-- 1 root root 598299 Aug 24 2019 modules.alias -rw-r--r-- 1 root root 600020 Aug 24 2019 modules.alias.bin -rw-r--r--by damsma - Debian
bodhi, it works! thank you :) the last thing i need are the kernel headers so that i can compile drivers (here) edit: figured it out, the symlink was missing :)by damsma - uBoot
bodhi, 1. create an ext3 partition on 8GB USB drive with gparted and label it 'rootfs' 2. cd to the fresh created partition in terminal and create the rootfs drive cd /media/user/xxxxxxxxxx sudo su chmod -R 777 . tar -xjf '/home/user/Downloads/Iomega IX4-200d/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2' cd boot cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdtby damsma - uBoot
the connection looks like this, you have to solder on 3 pins. mine is absolutely not professional, but i had nothing else by hand :) and then connect with picocom -b 115200 /dev/ttyUSB1by damsma - uBoot
bodhi, maybe usb would be better. but do you have an idea why the new kernel is not booting? ## Booting image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2021-05-31 19:52:47 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4972882 Bytes = 4.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ..by damsma - uBoot
bodhi, i tried that command but i did not help, so i wrote back the original 3mb kernel to the HDD. what i did not notice before and i am trying to understand is the block size. the block size should be 2048 i think? so.. for 4 mb: scsi read 0x40000 0x5000 0x2000 0x2000 == 8192 8192 / 4mb = 2048 (blocksize) for 3 mb it should be: 2048 * 3 = 6144 6144 == 0x1800 but Marby damsma - uBoot
bodhi, i tried the raw sectors method (had to use scsi instead of ide) with partial success; dd if=uImage of=/dev/sdb bs=1MiB seek=10 dd if=uInitrd of=/dev/sdb bs=1MiB seek=20 testing what happens after fresh boot and trying to load empty image Hit any key to stop autoboot: 0 Marvell>> bootm 0x40000 0x2100000 ## Booting image at 00040000 ... Bad Magic Number trying toby damsma - uBoot
bodhi, i am trying to boot from the SATA HDD only, without USB - but i think u-boot does not see the filesystem. the HDD is formatted as EXT2 now (i tried EXT3 too with no luck) alternatively i could try to use the nand for booting?by damsma - uBoot
bodhi, still no luck; Marvell>> setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10' Marvell>> setenv load_initrd_sata 'ext2load ide 0:1 0x21by damsma - uBoot
bodhi, Marvell>> setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) root=LABEL=rootfs rootdelay=10' Marvell>> setenv load_initrd_sata 'ext2load ide 0:1 0x2100000 /boot/uInitrby damsma - uBoot
How can i install the kernel headers? Preparing to compile for kernel version 4.4.0 File not found: /lib/modules/4.4.0-kirkwood-tld-1/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4. or maybe i am missing something? done this allready; cd /boot dpkg -i linux-headers-4.4.0-kirkwood-tld-1_1.0_armel.deb root@debian:/boot# apt-get install linux-headers-$(unaby damsma - Debian
bodhi, tested it down till 4.17.2 with the same result, the kernel ist not loading 7758422 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.17.2-kirkwood-tld-1 Created: 2021-06-01 20:07:41 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4126877 Bytes = 3.9 MB Load Address: 00008000 Entry Point: 00008000 Verifyingby damsma - uBoot
bodhi, Thak you, i will try this. Do you have any idea why the new kernel/version is not booting? Not sure if i can live with the old one :) ## Booting image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2021-05-31 19:52:47 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4972882 Bytes = 4.7 MB Load Address: 00008000by damsma - uBoot
bodhi, yes! [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1240 (klogd) . ok Debian GNU/Linux 8 debian ttyS0 debian login: now i want to put the rootfs on one of the sata HDDs, how should i modify the bootargs? setenv usb_make_boot_args 'setenv booby damsma - uBoot
bodhi, yes that is correct, i figured that out :) Now it gets stuck on waiting for root device as posted in my second answer above. Sorry for my impatience :)by damsma - uBoot
Little progress... the old rootfs (Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2) seems to work, but; Marvell>> setenv load_initrd 'ext2load usb 0:1 0x1100000 /boot/uInitrd' Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x1100000by damsma - uBoot
USB flash drive formatted with ext3 on debian; creating the debian rootfs on USB drive i used Kernel linux-5.2.9-kirkwood-tld-1 (Updated 18 Aug 2019) chmod -R 777 . sudo tar -xjf '/home/user/Downloads/Iomega IX4-200d/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2' cd boot cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-iomega_ix4_200d.dtb >> zImby damsma - uBoot
Reto Wrote: ------------------------------------------------------- > So far so good... > > > Marvell>> setenv usb_make_boot_args 'setenv > bootargs console=ttyS0,115200 > mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) > rootby damsma - uBoot