chadster766
Very Senior Member
I've been independently working on implementing Debian Jessie for the Linksys WRT1900\1200 Router Series.
Some of this development is outside my knowledge. I really need some help with this implementation.
So far I can:
Linux kernel 4.2.4 build notes:
USB Storage is formatted ext4.
Some of this development is outside my knowledge. I really need some help with this implementation.
So far I can:
- U-Boot Linux kernel 4.2.4 and an Initrd image made from an armhf Debian Jessie chroot rootfs but I haven't gotten Initrd to load the usb-storage modules in order to run a full blown rootfs on a USB storage.
- U-Boot Linux kernel 4.2.4 and a Debian Installer Netconsole Initrd image but there is a kernel mismatch which causes the installer to fail at the downloading modules section with the "no modules" error causing the installer to not detect the USB storage.
- I tried to U-Boot other Linux kernel versions like 3.16.1 and 3.16.4 but I believe the stock u-boot version isn't new enough for those kernel versions. Even then unless I'm mistaken the Debian Jessie Installer actually requires kernel version 3.16.0-4 which I haven't been able to find it's source.
Code:
debootstrap --foreign --no-check-gpg --arch=armhf jessie /srv/chroot/WRT1900AC-debian-armhf ftp://ftp.debian.org/debian/
cp /usr/bin/qemu-arm-static /srv/chroot/WRT1900AC-debian-armhf/usr/bin/
cp /etc/resolv.conf /srv/chroot/WRT1900AC-debian-armhf/etc/
chroot /srv/chroot/WRT1900AC-debian-armhf
/debootstrap/debootstrap --second-stage
passwd -d root
cat << EOT > /etc/apt/sources.list
deb http://ftp.de.debian.org/debian jessie main contrib non-free
deb http://ftp.de.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org/debian-security jessie/updates main contrib non-free
EOT
apt-get update
apt-get install localepurge
apt-get dist-upgrade
apt-get install locales dialog
#dpkg-reconfigure locales
apt-get install openssh-server ntpdate
passwd
echo <<EOT >> /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet dhcp
EOT
echo MCDEBIAN > /etc/hostname
#clean up debian rootfs
apt-get clean
mkinitramfs -o /boot/initrd-4.2.4.img 4.2.4
#initrd-4.2.4.img is later copied and renamed to initrd.gz for the uInitrd image creation later on
Linux kernel 4.2.4 build notes:
Code:
make ARCH=arm CROSS_COMPILE=arm-none-eabi- mvebu_v7_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- -j4 modules
make ARCH=arm CROSS_COMPILE=arm-none-eabi- INSTALL_MOD_PATH=/srv/chroot/WRT1900AC-debian-armhf modules_install
make ARCH=arm CROSS_COMPILE=arm-none-eabi- -j4 zImage
make ARCH=arm CROSS_COMPILE=arm-none-eabi- -j4 dtbs
mkimage -A arm -O linux -T kernel -C none -a 0x200000 -e 0x200000 -n "linux-4.2.4" -d arch/arm/boot/zImage uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x4200000 -e 0x4200000 -n "initrd image" -d initrd.gz uInitrd
setenv bootargs console=ttyS0,115200
tftpboot 0x8000000 uImage
tftpboot 0x10000000 uInitrd
tftpboot 0x18000000 armada-385-linksys-cobra.dtb
bootm 0x8000000 0x10000000 0x18000000
USB Storage is formatted ext4.
Last edited: