* Kernel boot panic
[not found] <442432868.3438411.1480515138244.ref@mail.yahoo.com>
@ 2016-11-30 14:12 ` Amit Mahadik
[not found] ` <18683.1480529291@turing-police.cc.vt.edu>
2016-12-08 14:59 ` Amit Mahadik
0 siblings, 2 replies; 8+ messages in thread
From: Amit Mahadik @ 2016-11-30 14:12 UTC (permalink / raw)
To: kernelnewbies
? ? ?Hi,? ? ? I am trying to boot Linux kernel version 4.4.16 on custom ARM based development platform.I want to separate rootfs and kernel Image so that the size of my uImage is small. I followed the following steps.
1. Partitioned the SD card. It has 2 partition. First partition is formatted as vfat partition and ? ?has uImage (without rootfs). Second partition is formatted as ext3 and has the rootfs.2. I then changed the U-Boot (version 2011.05) bootargs? ?Kernel command line: console=ttyS0,115200 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 ? ? ? ? ?rootwait mem=512M coherent_pool=4M no_console_suspend resume=/dev/mtdblock3.
However, while booting I get the following error?
Failed to create /dev/root: -2VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -2
I have also attached log for reference.?Can anyone please point out what I may be missing?
Regards,Amit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161130/7a7e5afd/attachment-0001.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log.txt
Url: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161130/7a7e5afd/attachment-0001.txt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
[not found] ` <18683.1480529291@turing-police.cc.vt.edu>
@ 2016-12-01 7:13 ` Amit Mahadik
0 siblings, 0 replies; 8+ messages in thread
From: Amit Mahadik @ 2016-12-01 7:13 UTC (permalink / raw)
To: kernelnewbies
Hi Valdis,? ? ? ? ? ? ? ?Thanks for your prompt answer. I have ext3 builtin the kernel. After looking into the code I found that sys_mknod function fails. I am unable to understand why this happens?
Regards,Amit.
On Wednesday, 30 November 2016 11:38 PM, "Valdis.Kletnieks at vt.edu" <Valdis.Kletnieks@vt.edu> wrote:
On Wed, 30 Nov 2016 14:12:18 +0000, Amit Mahadik said:
> bootargs? ?Kernel command line: console=ttyS0,115200 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 ? ? ? ? ?rootwait mem=512M coherent_pool=4M no_console_suspend resume=/dev/mtdblock3.
> However, while booting I get the following error?
> Failed to create /dev/root: -2VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -2
If you're booting with noinitrd, you better have ext3 as a builtin, not a
module, or you're going to have a really bad day....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161201/79e3b547/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
2016-11-30 14:12 ` Kernel boot panic Amit Mahadik
[not found] ` <18683.1480529291@turing-police.cc.vt.edu>
@ 2016-12-08 14:59 ` Amit Mahadik
2016-12-08 17:19 ` Kristof Provost
1 sibling, 1 reply; 8+ messages in thread
From: Amit Mahadik @ 2016-12-08 14:59 UTC (permalink / raw)
To: kernelnewbies
? ? ?Hi,
? ? ? I am trying to boot Linux kernel version 4.4.16 on custom ARM based development platform.I want to separate rootfs and kernel Image so that the size of my uImage is small. I followed the following steps.
1. Partitioned the SD card. It has 2 partition. First partition is formatted as vfat partition and ? ?has uImage (without rootfs). Second partition is formatted as ext3 and has the rootfs.2. I then changed the U-Boot (version 2011.05) bootargs? ?Kernel command line: console=ttyS0,115200 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 ? ? ? ? ?rootwait mem=512M coherent_pool=4M no_console_suspend resume=/dev/mtdblock3.
However, while booting I get the following error?
Failed to create /dev/root: -2VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -2
I have also attached log for reference.?Can anyone please point out what I may be missing?
Regards,Amit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161208/aa9bb492/attachment-0001.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log.txt
Url: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161208/aa9bb492/attachment-0001.txt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
2016-12-08 14:59 ` Amit Mahadik
@ 2016-12-08 17:19 ` Kristof Provost
2016-12-12 8:53 ` Amit Mahadik
0 siblings, 1 reply; 8+ messages in thread
From: Kristof Provost @ 2016-12-08 17:19 UTC (permalink / raw)
To: kernelnewbies
On 8 Dec 2016, at 15:59, Amit Mahadik wrote:
> ? ? ?Hi,
> ? ? ? I am trying to boot Linux kernel version 4.4.16 on custom ARM
> based development platform.I want to separate rootfs and kernel Image
> so that the size of my uImage is small. I followed the following
> steps.
> 1. Partitioned the SD card. It has 2 partition. First partition is
> formatted as vfat partition and ? ?has uImage (without rootfs).
> Second partition is formatted as ext3 and has the rootfs.2. I then
> changed the U-Boot (version 2011.05) bootargs? ?Kernel command line:
> console=ttyS0,115200 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2
> ? ? ? ? ?rootwait mem=512M coherent_pool=4M no_console_suspend
> resume=/dev/mtdblock3.
>
> However, while booting I get the following error?
> Failed to create /dev/root: -2VFS: Cannot open root device "mmcblk0p2"
> or unknown-block(179,2): error -2
> I have also attached log for reference.?Can anyone please point out
> what I may be missing?
Well, your kernel finds the partition, but it?s still unable to open
the root device.
Did you remember to compile ext3 support into your kernel (so not as a
module)?
Regards,
Kristof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
2016-12-08 17:19 ` Kristof Provost
@ 2016-12-12 8:53 ` Amit Mahadik
2016-12-12 9:07 ` Kristof Provost
0 siblings, 1 reply; 8+ messages in thread
From: Amit Mahadik @ 2016-12-12 8:53 UTC (permalink / raw)
To: kernelnewbies
Hi Kristof,? ? ? ? ? ? ? ?Yes I have compiled the EXT3 support into the kernel itself. But no luck yet!
Regards,Amit.
On Thursday, 8 December 2016 10:51 PM, Kristof Provost <kristof@sigsegv.be> wrote:
On 8 Dec 2016, at 15:59, Amit Mahadik wrote:
> ? ? ?Hi,
> ? ? ? I am trying to boot Linux kernel version 4.4.16 on custom ARM
> based development platform.I want to separate rootfs and kernel Image
> so that the size of my uImage is small. I followed the following
> steps.
> 1. Partitioned the SD card. It has 2 partition. First partition is
> formatted as vfat partition and ? ?has uImage (without rootfs).
> Second partition is formatted as ext3 and has the rootfs.2. I then
> changed the U-Boot (version 2011.05) bootargs? ?Kernel command line:
> console=ttyS0,115200 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2
> ? ? ? ? ?rootwait mem=512M coherent_pool=4M no_console_suspend
> resume=/dev/mtdblock3.
>
> However, while booting I get the following error?
> Failed to create /dev/root: -2VFS: Cannot open root device "mmcblk0p2"
> or unknown-block(179,2): error -2
> I have also attached log for reference.?Can anyone please point out
> what I may be missing?
Well, your kernel finds the partition, but it?s still unable to open
the root device.
Did you remember to compile ext3 support into your kernel (so not as a
module)?
Regards,
Kristof
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161212/1cabec13/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
2016-12-12 8:53 ` Amit Mahadik
@ 2016-12-12 9:07 ` Kristof Provost
2016-12-12 9:59 ` Amit Mahadik
0 siblings, 1 reply; 8+ messages in thread
From: Kristof Provost @ 2016-12-12 9:07 UTC (permalink / raw)
To: kernelnewbies
On 12 Dec 2016, at 9:53, Amit Mahadik wrote:
> Yes I have compiled the EXT3 support into the kernel itself. But no
> luck yet!
> Regards,Amit.
>
Have you tried mounting the ext3 partition in another linux machine?
Your log
indicates the kernel is not able to mount the partition, so the most
likely
causes are that the kernel doesn?t know how to read ext3 or that
there?s no
ext3 there.
Regards,
Kristof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
2016-12-12 9:07 ` Kristof Provost
@ 2016-12-12 9:59 ` Amit Mahadik
2016-12-12 10:36 ` Kristof Provost
0 siblings, 1 reply; 8+ messages in thread
From: Amit Mahadik @ 2016-12-12 9:59 UTC (permalink / raw)
To: kernelnewbies
Hi Kristof,????????????? Yes I tried mounting the SD card on another Linux machine. I can mount it. Following is its log*********************************************************************************************************************************************************************************root at sagark-Ubu14:~/amitm# mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
/dev/sdb1 on /media/evslab/BOOT type vfat (rw,nosuid,nodev,uid=1001,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
/dev/sdb2 on /mnt type ext3 (rw)**************************************************************************************************************************************************************************************
I have created the ROOTFS image using buildroot 2016.05 version. The /dev management option selected is "Dynamic using devtmpfs + eudev" and corresponding DEVTMPS options are enabled in Kernel config.
Browsing through the kernel code I find that the code gives error after create_dev API in init/do_mounts.c file.
Please let me know what I am doing wrong or missing?
Regards,Amit.
On Monday, 12 December 2016 2:38 PM, Kristof Provost <kristof@sigsegv.be> wrote:
On 12 Dec 2016, at 9:53, Amit Mahadik wrote:
> Yes I have compiled the EXT3 support into the kernel itself. But no
> luck yet!
> Regards,Amit.
>
Have you tried mounting the ext3 partition in another linux machine??
Your log
indicates the kernel is not able to mount the partition, so the most
likely
causes are that the kernel doesn?t know how to read ext3 or that
there?s no
ext3 there.
Regards,
Kristof
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161212/c877b7bc/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* Kernel boot panic
2016-12-12 9:59 ` Amit Mahadik
@ 2016-12-12 10:36 ` Kristof Provost
0 siblings, 0 replies; 8+ messages in thread
From: Kristof Provost @ 2016-12-12 10:36 UTC (permalink / raw)
To: kernelnewbies
Please don?t top-post.
On 12 Dec 2016, at 10:59, Amit Mahadik wrote:
> Yes I tried mounting the SD card on another Linux machine. I can mount
> it. Following is its
> log*********************************************************************************************************************************************************************************root at sagark-Ubu14:~/amitm#
> mount
> /dev/sda1 on / type ext4 (rw,errors=remount-ro)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
> none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
> none on /run/shm type tmpfs (rw,nosuid,nodev)
> none on /run/user type tmpfs
> (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
> none on /sys/fs/pstore type pstore (rw)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
> (rw,noexec,nosuid,nodev)
> systemd on /sys/fs/cgroup/systemd type cgroup
> (rw,noexec,nosuid,nodev,none,name=systemd)
> /dev/sdb1 on /media/evslab/BOOT type vfat
> (rw,nosuid,nodev,uid=1001,gid=1001,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
> /dev/sdb2 on /mnt type ext3
> (rw)**************************************************************************************************************************************************************************************
> I have created the ROOTFS image using buildroot 2016.05 version. The
> /dev management option selected is "Dynamic using devtmpfs + eudev"
> and corresponding DEVTMPS options are enabled in Kernel config.
>
Oooh, I missed this in the log the first time round:
[ 6.227066] Failed to create /dev/root: -2?
This is logged by `mount_root()`, if the `create_dev()` call fails.
It returned -2, which is `-ENOENT`.
Does your rootfs have a /dev directory?
Regards,
Kristof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161212/c8bfa2ac/attachment-0001.html
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-12-12 10:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <442432868.3438411.1480515138244.ref@mail.yahoo.com>
2016-11-30 14:12 ` Kernel boot panic Amit Mahadik
[not found] ` <18683.1480529291@turing-police.cc.vt.edu>
2016-12-01 7:13 ` Amit Mahadik
2016-12-08 14:59 ` Amit Mahadik
2016-12-08 17:19 ` Kristof Provost
2016-12-12 8:53 ` Amit Mahadik
2016-12-12 9:07 ` Kristof Provost
2016-12-12 9:59 ` Amit Mahadik
2016-12-12 10:36 ` Kristof Provost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).