Re: VFS: Cannot open root device "(null)" or unknown-block(0, 0): error -2

2021-08-15 Thread jim . cromie
On Sat, Aug 14, 2021 at 6:21 PM Valdis Klētnieks
 wrote:
>
> On Fri, 13 Aug 2021 18:08:38 -0600, jim.cro...@gmail.com said:
>
> > then I added BTRFS_FS, since thats the host fs.
> > of course it didnt work.
>
> > VFS: Cannot open root device "(null)" or unknown-block(0,0): error -2
> > Please append a correct "root=" boot option; here are the available 
> > partitions:
> > Kernel panic - not syncing: VFS: Unable to mount root fs on 
> > unknown-block(0,0)
> > CPU: 0 PID: 1 Comm: swapper Tainted: GW 5.14.0-rc4+ #5
>
> And it didn't find any usable btrfs (or other fs it knew about)
>
> > Heres a working  kernel (if overlarge config)
>
> > VFS: Mounted root (9p filesystem) readonly on device 0:20.
>
> > Anybody see any clues ?
>
> That '9p filesystem' should be a really big clue.  If that's the root fs that 
> you
> actually want to use, you need to do two things:
>
> a) point at it with root=
> b) have 9p filesystem support in the kernel

the part you trimmed out contained this,
I think it means I had those particular modules built-in correctly

9pnet: Installing 9P2000 support
sched_clock: Marking stable (3466602654, 29303733)->(4050551166, -554644779)
Btrfs loaded, crc32c=crc32c-generic, zoned=no
9pnet_virtio: no channels available for device /dev/root

that last line is where it skipped the track.


so I really have to understand how virtme is doing its magic.
fwiw, it looks like its somewhere in this command line

./.virtme_mods/lib/modules/0.0.0
/usr/bin/qemu-system-x86_64 -fsdev
local,id=virtfs1,path=/,security_model=none,readonly,multidevs=remap
-device virtio-9p-pci,fsdev=virtfs1,mount_tag=/dev/root -fsdev
local,id=virtfs5,path=/usr/local/lib/python3.9/site-packages/virtme-0.1.1-py3.9.egg/virtme/guest,security_model=none,readonly,multidevs=remap
-device virtio-9p-pci,fsdev=virtfs5,mount_tag=virtme.guesttools
-machine accel=kvm:tcg -watchdog i6300esb -cpu host -parallel none
-net none -echr 1 -serial none -chardev
stdio,id=console,signal=off,mux=on -serial chardev:console -mon
chardev=console -vga none -display none -kernel
./arch/x86/boot/bzImage -append
'virtme_link_mods=/home/jimc/projects/lx/wk-next/builds/local-i915m/.virtme_mods/lib/modules/0.0.0
earlyprintk=serial,ttyS0,115200 console=ttyS0 psmouse.proto=exps
"virtme_stty_con=rows 24 cols 108 iutf8" TERM=xterm-256color
rootfstype=9p rootflags=version=9p2000.L,trans=virtio,access=any,msize=200M
raid=noautodetect ro nokaslr dynamic_debug.verbose=3
module.dyndbg=+pmf init=/bin/sh -- -c "mount -t tmpfs run /run;mkdir
-p /run/virtme/guesttools;/bin/mount -n -t 9p -o
ro,version=9p2000.L,trans=virtio,access=any,msize=104857600
virtme.guesttools /run/virtme/guesttools;exec
/run/virtme/guesttools/virtme-init"' -machine dump-guest-core=on -m 2G
--smp 3
Wrong EFI loader signature.
early console in extract_kernel

btw, I will go back and look for more 9P options.
and more VIRT options

thanks

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-08-15 Thread Amit Kumar
https://github.com/martinezjavier/ldd3

On Fri, Aug 13, 2021 at 7:16 AM Amit Kumar  wrote:
>
> Hi All,
> Because the Linux kernel uses GCC extensions, this resource is
> important for a Linux kernel learner.
> https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.pdf
>
> Regards,
> Amit Kumar
>
> On Wed, Aug 11, 2021 at 5:07 PM Amit Kumar  wrote:
> >
> > On Wed, Aug 11, 2021 at 3:11 PM sri vathsa  wrote:
> > >
> > > Hi Amit,
> > >
> > > On Wed, Aug 11, 2021, 3:03 PM Amit Kumar  
> > > wrote:
> > >>
> > >>
> > >> I have got a resource which is about 5.4 LTS kernel.
> > >
> > >
> > > Can u share that resource here, even I trying to
> > > Understand latest kernel.
> > >
> > Linux Kernel Programming on perlego.com
> >
> > Regards,
> > Amit Kumar
> > > Thanks,
> > > Dara Srivathsa
> > >
> > >> ___
> > >> Kernelnewbies mailing list
> > >> Kernelnewbies@kernelnewbies.org
> > >> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux Kernel build dpkg-buildpackage error

2021-08-15 Thread Adverg Ebashinskii

>   can't see it not working  unless there is another error before this you are 
> not giving us.
 
Thank you for the reply. Actually the root cause of the error was much earlier 
in the output. Running scripts/config --disable SYSTEM_TRUSTED_KEYS makes the 
kernel compiles successfully.
--
Regards,
Adverg Ebashinskii
 
 ___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Linux Kernel build dpkg-buildpackage error

2021-08-15 Thread Adverg Ebashinskii

 
Hello!
 
I’m trying to build Linux Kernel from upstream and faced some build error.
 
Environment:
 
Ubuntu 20.04 
gcc  (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Linux Kernel 5.8.0-59-generic
 
Steps to build:
 
I follow the instructions specified in this site  
https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
 
1​​  cp /boot/config-$(uname -r) .config
 
2  make olddefconfig
 
3  make clean
 
4  make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom
 
After pretty long time of compiling source files I got the following error:
 
make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 2
make: *** [Makefile:1559: deb-pkg] Error 2
 
Is there a way to fix that?
--
Regards,
Adverg Ebashinskii___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[no subject]

2021-08-15 Thread Adverg Ebashinskii

Hello!
 
I’m trying to build Linux Kernel from upstream and faced some build error.
 
Environment:
 
Ubuntu 20.04 
gcc  (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Linux Kernel 5.8.0-59-generic
 
Steps to build:
 
I follow the instructions specified in this site  
https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
 
1​​  cp /boot/config-$(uname -r) .config​​​
 
2  make olddefconfig
 
3  make clean
 
4  make -j $(getconf _NPROCESSORS_ONLN) deb-pkg LOCALVERSION=-custom
 
After pretty long time of compiling source files I got the following error:
 
make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:77: deb-pkg] Error 2
make: *** [Makefile:1559: deb-pkg] Error 2
 
Is there a way to fix that?
 
--
Regards,
Adverg Ebashinskii___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux Kernel build dpkg-buildpackage error

2021-08-15 Thread Ewan Marshall

Try `make -j $(getconf _NPROCESSORS_ONLN) bindeb-pkg LOCALVERSION=-custom`

Line 77 of scripts/Makefile.Package is:
`$ mv $(KDEB_SOURCENAME).tar.gz 
../$(KDEB_SOURCENAME)_$${origversion}.orig.tar.gz`


which suggests it is not finding the file $(KDEB_SOURCENAME).tar.gz 
debians instructions tell one to use the bindeb-pkg build target instead 
of deb-pkg build target for some reason. I can't see it not working 
unless there is another error before this you are not giving us.


Regards,
Ewan

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies