Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04 LTS doesent load on vm. #51

Open
Sherensberk opened this issue Mar 11, 2022 · 2 comments
Open

Ubuntu 20.04 LTS doesent load on vm. #51

Sherensberk opened this issue Mar 11, 2022 · 2 comments

Comments

@Sherensberk
Copy link

Image get from official source: https://ubuntu.com/download/raspberry-pi/thank-you?version=20.04.4&architecture=server-arm64+raspi

command:
docker run -it -v :/sdcard/filesystem.img lukechilds/dockerpi:vm

output:
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttlirequest_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting init: /sbin/init exists but couldn't execute it (error -8)
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting init: /bin/sh exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
CPU: 0 PID: 1 Comm: swapper Not tainted 4.19.50+ #1
Hardware name: ARM-Versatile (Device Tree Support)
[] (unwind_backtrace) from [] (show_stack+0x10/0x14)
[] (show_stack) from [] (panic+0xc8/0x240)
[] (panic) from [] (kernel_init+0xb8/0xe8)
[] (kernel_init) from [] (ret_from_fork+0x14/0x2c)
Exception stack(0xcf823fb0 to 0xcf823ff8)
3fa0: 00000000 00000000 00000000 00000000
3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
Rebooting in 1 seconds..

When pass pi3 as arg:
image: /sdcard/filesystem.img
file format: raw
virtual size: 4 GiB (4294967296 bytes)
disk size: 4 GiB
Extracting partitions
dd: invalid number '1023,3,32'
Extracting boot filesystem
Error: ! Unable to open the input file: /fat.img for reading
Searching for kernel='kernel8.img'
Searching for dtb='bcm2710-rpi-3-b-plus.dtb'
Missing kernel='' or dtb=''

@Le5tes
Copy link

Le5tes commented Sep 19, 2022

I'm trying to do the same thing. I got the source code and this command is failing first:
'''
fdisk -l ${image_path}
| awk "/^[^ ]*1/{print "dd if=${image_path} of=${fat_path} bs=512 skip="$4" count="$6}"
| sh
'''
for that image the fdisk command is returning:
'''
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/sdcard/filesystem.img1 * 16,0,1 1023,3,32 2048 526335 524288 256M c Win95 FAT32 (LBA)
/sdcard/filesystem.img2 1023,3,32 1023,3,32 526336 6349231 5822896 2843M 83 Linux
'''
So the dd command is getting the EndCHS and EndLBA values rather than the StartLBA and Sectors values in skip and count.
If you increment the argument numbers (i.e. skip="$5" count="$7 ), that command works fine, and it extracts the filesystem ok, but there's no kernal8.img, so it still fails. :(

@Le5tes
Copy link

Le5tes commented Sep 19, 2022

Ok changing "kernal_pattern" to "VMLINUZ" seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants