tomeshnet / mesh-orange

A small ramdisk system running modern Debian to support mesh networking on ARM single-board computers
https://tomeshnet.github.io/mesh-orange/
GNU General Public License v2.0
39 stars 7 forks source link

Early boot output over serial - orange pi zero #37

Open darkdrgn2k opened 6 years ago

darkdrgn2k commented 6 years ago

The current orange pi build does not output anything to serial after "Starting kernel ..."

After poking at it i found the issue is probably in zImage replacing the stock zImage from Armbian yields

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
hamishcoleman commented 6 years ago

Are you saying that the current build crashes before finishing booting, or that there are messages not seen on the output?

I built an image from v0.6-91-gb352b7972309 and had no issues (there is a significant delay between "starting kernel" and the next line - as usual)

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.13.0 (hamish@x230i5) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #25 SMP Tue Sep 12 14:03:50 HKT 2017

darkdrgn2k commented 6 years ago

You are correct

In armbian there are a few more lines between starting kernel and 0.0000

They are not important unless you have issues with initrd. The early error messages will not show

Not a huge bug.. Just though is document that I isolated it to zImage (using armbian zImage produces the missing output)

hamishcoleman commented 6 years ago

ah, in this case it is a simple one: Its a kernel config option to set the amount of messages on the output add the kernel cmdline param "loglevel=7" and you should see some extra messages.

I added that setting into the kernel config to go into the next kernel build.