| 
 | 
 
 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. 
 
 |   
 
 
 
 |