sakaki wrote: ↑Thu Mar 19, 2020 7:50 pm
blee0518 wrote: ↑Wed Mar 18, 2020 8:41 pm
Code: Select all
root@raspberrypi:/home/admin# losetup --show -P -f ./root/openwrt-RaspberryPi3-GO2020-03-01.img
...
root@raspberrypi:/home/admin# systemd-nspawn --directory=/mnt/rooterroot/
Spawning container rooterroot on /mnt/rooterroot.
Press ^] three times within 1s to kill container.
execv(/bin/bash, /bin/sh) failed: Exec format error
Container rooterroot failed with error code 1.
root@raspberrypi:/home/admin#
The good news though, is that (assuming you are running on a 3B, 3B+ or 4B) you can easily switch your Raspbian host to use the 64-bit (official) kernel; after doing so ,your existing (32-bit) Raspbian userland will continue to work fine,
but you
should then also be able to chroot/nspawn into aarch64 userlands too (such as, presumably, your openwrt image, although I haven't tried it myself).
To do so, on your host system edit the file /boot/config.txt, and add to the end:
Save this file, and reboot. You will now be running a 64-bit kernel.
Now try setting up a loop mount and entering your image again. Any more luck this time?
hth, sakaki
https://i.pinimg.com/236x/09/3a/49/093a ... -scott.jpg
sorry for delay i wasnt subscribed
My next question would be: (yes i am using openwrt image, i am also trying to use the fork Goldenorb rooter as it gives me great cellular module tools, trying to create a cellular gateway in container)
Would this be the route to take when setting up this container as a service, machinectl (systemd.nspawn) ?
I really want this to boot up as a service when raspbian starts up.
I did get it setup as a machine `/var/lib/machines/openwrt` and ` /etc/systemd/nspawn/openwrt.nspawn` and setup a bridge to the container.
The issue I am having with this particular setup is from inside container, openwt, I can not access USB ports on the host RPi4.
Which is the underlying road block i am at now.
These are the 2 tutorials i am following:
https://openwrt.org/docs/guide-user/net ... /ltedongle
https://openwrt.org/docs/guide-user/sto ... quickstart
When i get to ls /dev/cdc-wdm0 the dir does not exist. but should of been added during installing packages.
I see you replied to some of my posts, thank you and i have now read them all. The reason for this madness is this.
The RPi4 is prices in a very affordable means to make it cellular router. the downfall is not being able to use most of the hardware abilities. That is why i want to run openwrt and a light linux server( file server / media center/etc...) I may even implement a VNC setup to play games(long shot to ever really doing this) . i do use the terminal for most everything. I am also in a position i need this to be usable by average person (yea, right at this point lol)
Could I run a file server / media server using openwrt ? could i use systemd to create a raspbian container on openwrt ?
Oh and GoldenOrb does not support natively RPi4 yet, as openwrt is only running a snapshot of it. I have been able to start container using RPi2 openwrt firmware. RPi3 doesnt play nice when starting container. but this maybe going back to the 32 - 64 bit thing.