Enable early printk in the kernel debug section on menu config. Then
add it to the command line from uboot.
Kernel command line: console=ttyS0,115200 loglevel=9 earlyprintk
root=/dev/nfs ip=192.168.1.51:192.168.1.254:192.168.1.254:255.255.255.0:truck::off
nfsroot=192.168.1.50:/export/work/root rootwait
For development I use tftp in uboot to load the kernel and then nfs
mount the root file system. SD in target only has uboot on it.
sun7i# printenv
baudrate=115200
boot_ram=saved_stdout=$stdout;setenv stdout nc;if iminfo 0x41000000;
then true; setenv stdout $saved_stdout; source 0x41000000;else setenv
stdout $saved_stdout;fi
bootargs=console=ttyS0,115200 loglevel=9 earlyprintk root=/dev/nfs
ip=dhcp root=192.168.1.50:/work2/root
bootdelay=2
bootenv=uEnv.txt
bootm_size=0x10000000
bootscr=boot.scr
ce=run nbe; run nbb; run nbr
ch=run nbl; run nbb; run nbr
console=ttyS0,115200
device=mmc
ethact=dwmac.1c50000
ethaddr=70:71:bc:b8:ab:ee
fdt_high=ffffffff
fileaddr=49000000
filesize=5e1a
ipaddr=192.168.1.51
kernel=uImage
loadbootenv=fatload $device $partition $scriptaddr ${bootenv} ||
ext2load $device $partition $scriptaddr boot/${bootenv} || ext2load
$device $partition $scriptaddr ${bootenv}
loadbootscr=fatload $device $partition $scriptaddr ${bootscr} ||
ext2load $device $partition $scriptaddr boot/${bootscr} ||ext2load
$device $partition $scriptaddr ${bootscr}
loadkernel=if bootpath=/boot/ && ext2load $device $partition
0x43000000 ${bootpath}${script} && ext2load $device $partition
0x48000000 ${bootpath}${kernel};then true; elif bootpath=/ && fatload
$device $partition 0x43000000 ${script} && fatload $device $partition
0x48000000 ${kernel};then true; elif bootpath=/ && ext2load $device
$partition 0x43000000 ${bootpath}${script} && ext2load $device
$partition 0x48000000 ${bootpath}${kernel};then true; else false;fi
loglevel=8
nbb=setenv bootargs console=ttyS0,115200 loglevel=9 earlyprintk
root=/dev/nfs ip=192.168.1.51:192.168.1.254:192.168.1.254:255.255.255.0:truck::off
nfsroot=192.168.1.50:/export/work/root rootwait
nbe=tftp 0x46000000 /var/lib/tftpboot/eImage && tftp 0x49000000
/var/lib/tftpboot/e.dtb && setenv fdt_high ffffffff
nbl=tftp 0x46000000 /var/lib/tftpboot/uImage && tftp 0x49000000
/var/lib/tftpboot/ct.dtb && setenv fdt_high ffffffff
nbr=bootm 0x46000000 - 0x49000000
panicarg=panic=10
partition=0:1
script=script.bin
scriptaddr=0x44000000
serverip=192.168.1.50
setargs=if test -z \\"$root\\"; then if test \\"$bootpath\\" =
"/boot/"; then root="/dev/mmcblk0p1 rootwait"; else
root="/dev/mmcblk0p2 rootwait"; fi; fi; setenv bootargs
console=${console} root=${root} loglevel=${loglevel} ${panicarg}
${extraargs}
stderr=serial
stdin=serial
stdout=serial
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
linux-sunxi...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Jon Smirl
jons...@gmail.com