please choosego to mobile | Continue to access the PC version
View: 10002|Reply: 4

OrangePI PC Plus. Starting lubuntu OS from EMMC

[Copy link]

1

threads

2

posts

35

credits

Novice

Rank: 1

credits
35
Published in 2017-11-7 23:07:53 | Show all floors |Read mode
Edited by soierr at 2017-11-7 23:11

Hello everyone,

Here is the problem I've encountered while trying to load the subject OS from emmc.

So what was did before.

1. Downloaded proper OS image right from PC Plus section

http://www.orangepi.org/download ... a1cb32b7ca0aa3.html

(Lubuntu_1404_For_OrangePi_PCPlus_v0_8_0.img.xz)

2. Installed OS on external mmc card.

3. According to readme.txt in /home/orangepi/burn-image-to-emmc

I've done the following steps, here in details

        a. sudo dd bs=4M if=Lubuntu_1404_For_OrangePi_PCPlus_v0_8_0.img.img of=/dev/mmcblk1

        b. reboot

        c. sudo dd if=u-boot-sun8iw7p1.bin of=/dev/mmcblk1 bs=1024 seek=16400

        d. Remove sd card, reboot. After reboot I get the following error while starting the OS
        
        4.391022] ALSA device list:
[    4.394310]   #0: audiocodec
[    4.397501]   #1: sndhdmi
[    4.400890] VFS: Cannot open root device "mmcblk2p2" or unknown-block(0,0): error -6
[    4.409479] Please append a correct "root=" boot option; here are the available partitions:
[    4.418787] b300         7634944 mmcblk0  driver: mmcblk
[    4.424706]   b301           41984 mmcblk0p1 00000000-0000-0000-0000-000000000000
[    4.433063]   b302         3521536 mmcblk0p2 00000000-0000-0000-0000-000000000000
[    4.441388] b320            4096 mmcblk0boot1  (driver?)
[    4.447284] b310            4096 mmcblk0boot0  (driver?)
[    4.453199] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    4.462408] [<c0016a3c>] (unwind_backtrace+0x0/0xec) from [<c05f74bc>] (dump_stack+0x20/0x24)
[    4.471886] [<c05f74bc>] (dump_stack+0x20/0x24) from [<c05f77a0>] (panic+0x94/0x1f0)
[    4.480499] [<c05f77a0>] (panic+0x94/0x1f0) from [<c0889df0>] (mount_block_root+0x240/0x288)
[    4.489867] [<c0889df0>] (mount_block_root+0x240/0x288) from [<c0889e90>] (mount_root+0x58/0x68)
[    4.499643] [<c0889e90>] (mount_root+0x58/0x68) from [<c0889fd0>] (prepare_namespace+0x130/0x190)
[    4.509516] [<c0889fd0>] (prepare_namespace+0x130/0x190) from [<c0889a18>] (kernel_init+0x184/0x1c4)
[    4.519673] [<c0889a18>] (kernel_init+0x184/0x1c4) from [<c000f358>] (kernel_thread_exit+0x0/0x8)
[    4.529529] CPU0: stopping
....

The problem is with mmcblk2p2. I have no partition like that. It seems some problem with u-boot script which I unable to change.

My partitions are mmcblk0p1, mmcblk0p2

Having loaded u-boot shell, I've discovered that variable mmc_root has the following value:

mmc_root=/dev/mmcblk2p2

which is wrong.

So I needed to change that, then perform

run setargs_mmc boot_normal

And the os loaded OK.

Obviously, I can't do it every time my system starts up. But I can't store this fixed parameter either.

Probably, there is another image with correct u-boot script.

As to solution, I'd rather not to install another os like armlinux or build linux from source.

Is there any solution with lubuntu ? Probably newer image release ?

Thanks in advance.

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2017-11-8 02:41:54 | Show all floors

1

threads

2

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2017-11-12 00:15:40 | Show all floors
Thanks for the answer. Are there any suggestions as to how to fix it ? Are there orangepi support people ?

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2017-11-12 00:30:16 | Show all floors
Fix Lubuntu 14.04 glued with Android kernel from some other times? Seriously?

0

threads

24

posts

170

credits

Registered member

Rank: 2

credits
170
Published in 2017-11-14 14:40:42 | Show all floors
There is a way  for how to burn linux image to EMMC, you can refer to this
https://mega.nz/#!cksQEZYA!_2Rci ... nOw1hi-XHTFPW56sfeA
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list