[clug] ARM devices with complete upstream support

Eyal Lebedinsky eyal at eyal.emu.id.au
Tue Nov 1 09:52:11 UTC 2016


On 01/11/16 20:20, Chris Smart wrote:
> On Tue, Nov 01, 2016 at 03:55:50PM +1100, Eyal Lebedinsky wrote:
>>>
>>> You'll need to have copied the contents of the initramfs to the
>>> partition and also edited an /etc/fstab. I didn't go into these details,
>>> so if it's confusing I can remove the suggestion entirely.
>>
>> I see, I actually wanted to copy over a root partition from a full distro (e.g.raspbian).
>> Nevermind.
>>
>
> I would expect that to work just fine. You don't have any modules to
> rsync across, but if you wanted to, you could.
>
> The main thing is that the kernel we built was a defconfig, you might
> need to run menuconfig and turn on a bunch of stuff specific for your
> system (it does have ext4 support though).

Chris,

I think I took enough of everyone's time, and if anyone else wants to chime in - please do.

In summary: When I changed the kernel parameter to "root=/dev/mmcblk0p2" and
that partition was empty, I expected to at lease say *some* message or error
during the boot. However, none was seen as if it was completely ignored.

The log shows

[    0.000000] Kernel command line: console=tty1 console=ttyAMA0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10

and later

[    2.357664] mmc0: new SDHC card at address aaaa
[    2.363029] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    2.374243]  mmcblk0: p1 p2
[    2.581072] dwc2 3f980000.usb: DWC OTG Controller
[    2.585987] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
[    2.593355] dwc2 3f980000.usb: irq 39, io mem 0x00000000
[    2.599842] hub 1-0:1.0: USB hub found
[    2.603775] hub 1-0:1.0: 1 port detected
[    2.611993] ALSA device list:
[    2.615076]   No soundcards found.
[    2.618833] uart-pl011 3f201000.serial: no DMA platform data
[    2.627773] Freeing unused kernel memory: 1024K (c0a00000 - c0b00000)
[    2.671471] random: init: uninitialized urandom read (4 bytes read)
[    2.679538] random: mount: uninitialized urandom read (4 bytes read)
[    2.687477] random: mount: uninitialized urandom read (4 bytes read)
[    2.695626] random: mkdir: uninitialized urandom read (4 bytes read)
[    2.710992] random: mkdir: uninitialized urandom read (4 bytes read)
[    2.726077] random: mount: uninitialized urandom read (4 bytes read)
[    2.744068] random: hostname: uninitialized urandom read (4 bytes read)
[    2.759443] random: rcS: uninitialized urandom read (4 bytes read)
[    2.775238] random: exe: uninitialized urandom read (4 bytes read)
ESC[HESC[JInitializing random number generator... done.

raspi3 login: root
Jan  1 00:00:11 login[94]: root login on 'ttyAMA0'
# df -h
Filesystem                Size      Used Available Use% Mounted on
none                    374.4M         0    374.4M   0% /dev
tmpfs                   375.5M         0    375.5M   0% /dev/shm
tmpfs                   375.5M         0    375.5M   0% /tmp
tmpfs                   375.5M         0    375.5M   0% /run
#

Maybe boot.scr is not fully used?

cheers

> -c


-- 
Eyal Lebedinsky (eyal at eyal.emu.id.au)



More information about the linux mailing list