Hello,
I have to install OpenWrt as a additional system on a existing one, but can't get it work.
I was using this image:
https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-ext4-combined-efi.img.gz
The first, original system is an ipfire with 3 partitions.
sda1 = /boot
sda2 = /boot/efi
sda4 = swap
sda6 = /
First I have resized sda6 to get space for an additional partition sda7 and created an ext4 filesystem on the new partition.
Then I downloaded the OpenWrt image to my linux system.
After unzipping it, I have created a loop device per partition,
# losetup -P -f --show o....img
# mkdir /mnt/owrt
# mount /dev/loop1p2 /mnt/owrt
# mkdir /mnt/owrt/boot
# mount /dev/loop1p1 /mnt/owrt/boot
Then I added an additional entry to the existing ipfire grub.cfg, like the original openwrt entry.
The only thing I canged was the root entry and of course the PARTUUID with the one from the just created partition sda7
menuentry "OpenWrt" {
set root='(hd0,7)'
linux /boot/vmlinuz root=PARTUUID=.... rootwait console=tty0 console=ttyS0,115200n8 noinitrd
}
The last step was copying the content of previous mounted partition via rsync like this:
rsync -aAvx root@192.168.1.100:/mnt/owrt/* /mnt/sda7/
When starting the new system, I got the grub menu entry and can select "OpenWrt".
The system starts up and then it stops.
The only thing I can do is to press "Ctrl+Alt+Del".
What I'm doing wrong?
Henning