All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Crispin <john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
To: Kristian Evensen
	<kristian.evensen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: Questions about bringing up MT7623 board
Date: Sun, 11 Feb 2018 18:45:49 +0100	[thread overview]
Message-ID: <6fce7e74-04ad-c00c-150b-b87ef4aef885@phrozen.org> (raw)
In-Reply-To: <CAKfDRXjVSsYke-d2Bww+SrqRepfgVXzHBbeyfahOhc9Tr5Zmbw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>



On 11/02/18 17:09, Kristian Evensen wrote:
> Hi,
>
> On Sun, 11 Feb 2018 at 15:46, John Crispin <john@phrozen.org 
> <mailto:john@phrozen.org>> wrote:
>
>
>
>     On 11/02/18 15:01, Kristian Evensen wrote:
>     > Hi,
>     >
>     > It turns out that enabling early printk in the kernel config did the
>     > trick, thank you very much for pointing me to this error. I also
>     > changed my defconfig a bit, I merged the two OpenWRT 4.9 configs
>     > (generic and mediatek), created a new defconfig and used that as a
>     > starting point (make ..._defconfig). Now I can finally see what is
>     > going on and I see that the boot progresses quite far. My boot now
>     > gets to the point where it looks for the root filesystem, but here I
>     > have hit another problem. The kernel only produces the following
>     > error:
>     >
>     > [    2.037354] mmc0: new high speed MMC card at address 0001
>     > [    2.045252] mmcblk0: mmc0:0001 008G70 7.28 GiB
>     > [    2.053533] mmcblk0boot0: mmc0:0001 008G70 partition 1 4.00 MiB
>     > [    2.053723] mmcblk0boot1: mmc0:0001 008G70 partition 2 4.00 MiB
>     > [    2.053910] mmcblk0rpmb: mmc0:0001 008G70 partition 3 4.00 MiB
>     > [    2.055456]  mmcblk0: p2 p3
>     > [    2.056986] xhci-mtk 1a1c0000.usb: 1a1c0000.usb supply vbus not
>     > found, using dummy regulator
>     > [    2.153894] vpa: disabling
>     > [    2.156608] vmc: disabling
>     > [    2.159296] vmch: disabling
>     > [    2.162103] vgp1: disabling
>     > [    2.164897] vcamaf: disabling
>     > [    2.168241] VFS: Cannot open root device "(null)" or
>     > unknown-block(0,0): error -6
>     > [    2.175712] Please append a correct "root=" boot option; here are
>     > the available partitions:
>     > [    2.184031] b300         7634944 mmcblk0
>     > [    2.184036]  driver: mmcblk
>     > [    2.190775]   b302         1048576 mmcblk0p2 00000000-02
>     > [    2.190779]
>     > [    2.197563]   b303         2097152 mmcblk0p3 00000000-03
>     > [    2.197566]
>     > [    2.204332] b318            4096 mmcblk0rpmb
>     > [    2.204335]  (driver?)
>     > [    2.210988] b310            4096 mmcblk0boot1
>     > [    2.210992]  (driver?)
>     > [    2.217747] b308            4096 mmcblk0boot0
>     > [    2.217750]  (driver?)
>     > [    2.224504] Kernel panic - not syncing: VFS: Unable to mount root
>     > fs on unknown-block(0,0)
>     >
>     > My rootfs, etc, is stored on mmcblk0 and the partitioning is
>     specified
>     > in the boot arguments (which are:
>     > block2mtd.block2mtd=/dev/mmcblk0,65536,eMMC,5
>     >
>     mtdparts=eMMC:256k(mbr)ro,512k(uboot)ro,256k(config)ro,256k(factory)ro,32M(kernel),32M(recovery),1024M(rootfs),2048M(usrdata),-(bmtpool)
>     >   rootfstype=squashfs,jffs2). I have doublecheked, and I can't
>     find any
>     > missing MTD-options compared to the 4.9 config. Could it be that new
>     > options have been added and have to be specified? For example,
>     > MTD_BLOCK2MTD and MTD_CMDLINE_PARTS is set.
>
>     block2mtd is a owrt specific driver, it wont work on on vanilla.
>
>
> Thanks for letting me know. I was not aware and just assumed the 
> block2mtd would work as in owrt. Perhaps a better starting point for 
> my work would be to try to hack together 4.14 support for mediatek in 
> OpenWRT. Installing a «normal» rootfs is a bit of a pain on this 
> board. Another option would be to move the mtd-patches I guess. Will 
> try both and see how it goes :)
>
> BR,
> Kristian
>

I have 4.14 support in my staging tree alread, i'll psh it to owrt the 
next couple of days

     John

_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

  parent reply	other threads:[~2018-02-11 17:45 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-10 22:02 Questions about bringing up MT7623 board Kristian Evensen
     [not found] ` <CAKfDRXhhrndoKMidZYsw=E8BmS7AFsTJHbS4dcYbEoADhjD44Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 10:33   ` Kristian Evensen
     [not found]     ` <CAKfDRXg0jeHP9xZRGDNm5tfW1afZd-TPfwbwUzEPiWsy_bfuUQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 10:36       ` John Crispin
     [not found]         ` <fc2bf32a-eb81-6cd1-9085-b8786ddf0f9c-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
2018-02-11 10:40           ` Kristian Evensen
     [not found]             ` <CAKfDRXjpG4CNeHfKC1Kg=6mrqUTZ8A7bD1aivLkSQ2L0eK755Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 10:41               ` John Crispin
     [not found]                 ` <6ae4103b-45bf-c427-d0d9-87f6f4eb83b5-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
2018-02-11 10:55                   ` Kristian Evensen
     [not found]                     ` <CAKfDRXiJCMpA+qj4HmoSg0F_Yt4LnjQ=Dvy_tkxa=Dnh_pN13g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 11:11                       ` John Crispin
     [not found]                         ` <12343512-196f-c89f-e7dc-2e35cad49fc8-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
2018-02-11 11:13                           ` Kristian Evensen
     [not found]                             ` <CAKfDRXg66Un3c7U=WTSUYoduDkAD+jsL-tzxnYUSLHKrmFKiOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 14:01                               ` Kristian Evensen
     [not found]                                 ` <CAKfDRXiQb3LMSdjfE=CkfJE5bj9H+GAVD2Kj4syNfQD-eUPmWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 14:46                                   ` John Crispin
     [not found]                                     ` <CAKfDRXjVSsYke-d2Bww+SrqRepfgVXzHBbeyfahOhc9Tr5Zmbw@mail.gmail.com>
     [not found]                                       ` <CAKfDRXjVSsYke-d2Bww+SrqRepfgVXzHBbeyfahOhc9Tr5Zmbw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 17:45                                         ` John Crispin [this message]
     [not found]                                           ` <CAKfDRXiirPhTbaUTcxseS7UuAiFDR_oY-QdvwvYc6Ua2vwuLSw@mail.gmail.com>
     [not found]                                             ` <CAKfDRXiirPhTbaUTcxseS7UuAiFDR_oY-QdvwvYc6Ua2vwuLSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-11 17:56                                               ` John Crispin
     [not found]                                                 ` <ba2e3623-dd21-9802-9ae6-12cd8baaac1e-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
2018-02-11 20:53                                                   ` Kristian Evensen
2018-02-12 11:08                       ` Matthias Brugger
     [not found]                         ` <a594ffaa-4098-4171-f824-1aa3f332c9fc-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-02-12 12:02                           ` Kristian Evensen
     [not found]                             ` <CAKfDRXgNGRHu9JMs-9vb4n72w+PmR8buqDnz8ObEQNXtP1pM4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-12 14:37                               ` Sean Wang
2018-02-12 14:49                                 ` Kristian Evensen
     [not found]                                   ` <CAKfDRXi57H5V+Qv-YO6+8OKdZLbTw7T_h64uZTMQZP6biO7Wpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-04-29 20:18                                     ` Kristian Evensen
     [not found]                                       ` <CAKfDRXg419rBTeqZ+UqQJFRj5s6CVg0YXzjmhyFxrbJgMkM8fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-04-30  1:42                                         ` Ryder Lee
2018-04-30 16:12                                           ` Kristian Evensen
2018-02-17 19:10                           ` Andreas Färber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6fce7e74-04ad-c00c-150b-b87ef4aef885@phrozen.org \
    --to=john-pj+rj9u5fofafugrpc6u6w@public.gmane.org \
    --cc=kristian.evensen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.