j1nx build booting problem from SD card or NFS
#1
Hi,

I am trying to boot the j1nx builds from SD card or NFS at my amlogic M3 box .
But, I meet the problem with following logs

Code:
[   15.683246] VFS: Mounted root (yaffs2 filesystem) on device 31:5.
[   15.687680] devtmpfs: error mounting -2
[   15.687718] init_post.
[   15.689984] Freeing init memory: 192K
[   15.693577] run_init_process /sbin/init.
[   15.697579] Failed to execute /sbin/init.  Attempting defaults...
[   15.703544] run_init_process /sbin/init.
[   15.707509] run_init_process /etc/init.
[   15.719557] run_init_process /bin/init.
[   15.761693] run_init_process /bin/sh.
/bin/sh: 8: No such file or directory
[   15.773930] Kernel panic - not syncing: Attempted to kill init!
[   15.777370] Backtrace:
[   15.779796] [<c003d110>] (dump_backtrace+0x0/0x110) from [<c071ead8>] (dump_s
tack+0x18/0x1c)
[   15.788219]  r6:c094bfe8 r5:c094bfe8 r4:c094a824 r3:c09aa820
[   15.793821] [<c071eac0>] (dump_stack+0x0/0x1c) from [<c071eb30>] (panic+0x54/
0xd4)
[   15.801355] [<c071eadc>] (panic+0x0/0xd4) from [<c0061f50>] (do_exit+0x620/0x
6b4)
[   15.808814]  r3:00000000 r2:e7c37ce0 r1:e7c37f20 r0:c086f3f4
[   15.814426] [<c0061930>] (do_exit+0x0/0x6b4) from [<c0062028>] (do_group_exit
+0x44/0xb4)
[   15.822478]  r7:000000f8
[   15.824984] [<c0061fe4>] (do_group_exit+0x0/0xb4) from [<c00620b0>] (sys_exit
_group+0x18/0x20)
[   15.833564]  r4:0000007f r3:0003d234
[   15.837121] [<c0062098>] (sys_exit_group+0x0/0x20) from [<c00390c0>] (ret_fas
t_syscall+0x0/0x30)
[   15.845882] m3_nand_reboot_notifier 882
[   15.849834] Rebooting in 10 seconds..

This is my printenv status.

Code:
EC3_MBOX # printenv
bootcmd=run nandboot
bootdelay=1
baudrate=115200
netmask=255.255.255.0
hostname=arm_m3
bootfile=uImage
loadaddr=0x82000000
testaddr=0x82400000
loadlogoaddr=0x84100000
usbtty=cdc_acm
console=ttyS2,115200n8
mmcargs=setenv bootargs console=${console} boardname=m1_mbox
chipname=8726m
outputmode=720p
720poutputwidth=1280
720poutputheight=720
normal_name=boot
normal_start=0x1800000
normal_size=0x600000
recovery_name=recovery
recovery_start=0x2000000
recovery_size=0x800000
recovery_path=uImage_recovery
aml_logo_name=aml_logo
aml_logo_start=0x800000
aml_logo_size=0x800000
nandargs=setenv bootargs rootfstype=ext3 androidboot.resolution=${outputmode} an
droidboot.serialno=${droidserial} rootwait init=/init console=ttyS0,115200n8 noh
lt , a9_clk=400M clk81=200M mem=1024M mac=${ethaddr}
nandboot=run nandargs; nand read ${loadlogoaddr} ${aml_logo_start} ${aml_logo_si
ze};nand read ${loadaddr} ${normal_start} ${normal_size};bootm ${loadaddr}
recovery=run recoveryboot
recoveryboot=echo Enter recovery mode...;sf probe 2;sf read ${loadaddr} 52000 38
0000; bootm ${loadaddr}
bootloader_start=0
bootloader_size=400000
bootloader_path=spi.bin
ethaddr=00:DC:AA:A0:01:03
init_ics1219PU=0
droidserial=DC29PUNA00018
cvbsmode=480cvbs
ethact=Apollo EMAC
screen_width=1280
screen_height=720
serverip=192.168.0.90
gatewayip=192.168.0.1
ipaddr=192.168.0.100
temp=logo=osd1,0x84100000,full,720p,full androidboot.resolution=720p resolution_
size=1280,720
temp1=nohltmem=1024M mac=00:DC:AA:A0:01:03
nfsargs=rw noinitrd root=/dev/nfs nfsroot=192.168.0.90:rootfs,nfsvers=3 init=/sb
in/init ip=192.168.0.100:192.168.0.90:192.168.0.1:255.255.255.0:target:eth0:off
console=ttyS0,115200 a9_clk=800M clk81=187500k nohltmem=1024M mac=00:DC:AA:A0:01
:03 logo=osd1,0x84100000,full,720p,full androidboot.resolution=720p resolution_s
ize=1280,720
bootargs=root=/dev/cardblksd2 rw rootfstype=ext3 androidboot.resolution=720p roo
twait init=/init console=ttyS0,115200n8 nohlt a9_clk=600M clk81=200M ,powermode1
,unplug_powerdown mac=00:DC:AA:A0:01:03 mem=512m
nfsboot=setenv bootargs $nfsargs; tftpboot 0x82000000 uImage; bootm 0x82000000
stdin=serial
stdout=serial
stderr=serial

I inputed next command at uboot command.
#run nfsboot

I make SD card with two partions ( fat32:uImage, ext3:rootfs files )
What is the problem?
Reply
#2
This is the same situation....

http://forum.xbmc.org/showthread.php?tid=152328
Reply
#3
noggin fixed it for his box, you might try that.
Reply
#4
You don't give much info about your specific compile parameters do you? Anyway, looking at the info you do give: You try to mount an ext3 partirion as yaffs.
Reply
#5
I forked the j1nx buildroot-AmLogic stuff, edited /etc/fstab and S10setup in init.d to remove all yaffs2 stuff (as I'm using NFS for my entire fs), and also edited s10setup to leave filesystems rw. I tar-ed the rootfs.tar to my NFS share.

I compiled my kernel with different NAND settings to j1nx's.

Will try and sync my current build with my github repo tonight in case it helps. It may take a while to read my thread but all the info is in there that got my box to work to a degree (ircodes aren't mapping and my USB requires a powered hub to work...)
Reply
#6
First, I'm trying NFS booting.

But, my M3 board is stopped with kernel panic while kernel is loading.
Problem is NFS mount fail.
I found the reason of NFS mount fail.
My board LAN LED is off after kernel loading.
I guess that LAN driver isn't loaded.

How can I solve it?

ps : Lan chip(MAC?) of my board is LAN8720.
I builded with default amlogic_f16ref_gbox-xbmc_defconfig.

Code:
[   19.696986] Looking up port of RPC 100003/3 on 192.168.0.90
[   21.326810] nftl creat stucture completely free blk: 20 erased blk: 1345
[   49.696812] rpcbind: server 192.168.0.90 not responding, timed out
[   49.697496] Root-NFS: Unable to get nfsd port number from server, using defau
lt
[   49.704747] Looking up port of RPC 100005/3 on 192.168.0.90
[   79.706815] rpcbind: server 192.168.0.90 not responding, timed out
[   79.707495] Root-NFS: Unable to get mountd port number from server, using def
ault
[   79.715076] Root-NFS: Server returned error -101 while mounting /home/aml/bui
ldroot-AmLogic/output/images
[   79.724536] VFS: Unable to mount root fs via NFS, trying floppy.
[   89.726837] VFS: Cannot open root device "nfs" or unknown-block(2,0)
[   89.727643] Please append a correct "root=" boot option; here are the availab
le partitions:
[   89.736004] 1f00            4096 mtdblock0 (driver?)
[   89.740905] 1f01            4096 mtdblock1 (driver?)
[   89.745835] 1f02           16384 mtdblock2 (driver?)
[   89.750773] 1f03           16384 mtdblock3 (driver?)
[   89.755709] 1f04           20480 mtdblock4 (driver?)
[   89.760647] 1f05          524288 mtdblock5 (driver?)
[   89.765596] 1f06          196608 mtdblock6 (driver?)
[   89.770520] 1f07          524288 mtdblock7 (driver?)
[   89.775457] 1f08         2879488 mtdblock8 (driver?)
[   89.780394] fa20         2660352 avnftl8 (driver?)
[   89.785158] 1f09             384 mtdblock9 (driver?)
[   89.790101] 1f0a               8 mtdblock10 (driver?)
[   89.790101] 1f0a               8 mtdblock10 (driver?)
[   89.800141] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(2,0)
Reply
#7
I find the reason of my board ethernet problem.
My board use the internal clock for ethernet but reff16 use the external clock.

I success .....

Thank you for help....

I will test that it have some problem...
Reply
#8
(2013-02-01, 09:07)bcchang Wrote: I find the reason of my board ethernet problem.
My board use the internal clock for ethernet but reff16 use the external clock.

I success .....

Thank you for help....

I will test that it have some problem...

Be a good guy and share what you have done / changed with the others on this board. I know for sure others will also want to know what you did to get eth working...
Reply
#9
My board configuration is

clk81 = 200M --> bootargs ( I found it at console log. )

/buildroot-AmLogic/output/build/linux-db...../arch/arm/mach-meson3/board-m3-reff16-gbox.c

//#define NET_EXT_CLK 1 --> I block this define.

My board use the internal clock for ethernet.
If your board have ethernet problem then try it....

That's all.

Reply
#10
XBMC cannot play some video file.

following console log...

Code:
[ 1438.977815] vf_unreg_provider:decoder.mpeg4
[ 1438.977948] vf_unreg_provider:ppmgr
[ 1438.980001] [tsync_avevent]event:2, param 0
[codec_resume]p->has_audio=0
send control failed,handle=0,cmd=40045312,paramter=0, t=ffffffff errno=22
send control failed,handle=0,cmd=80045308,paramter=43d30b74, t=ffffffff errno=22

send control failed,handle=0,cmd=80045308,paramter=43d30b74, t=ffffffff errno=22

[codec_pause]p->[ 1439.103251] vf_reg_provider:decoder.mpeg4
[ 1439.104738] vf_reg_provider:ppmgr
has_audio=0
send control failed,handle=0,cmd=40045312,paramter=0, t=ffffffff errno=22
Reply
#11
mpeg4 Smile crappy avi's.
Reply
#12
First, I success the NFS booting. But, I failed the SD card booting.

Second, I'm trying for the SD card booting.
I get the next console log messge.

Code:
[    7.638772] set sd_mmc config_reg->cmd_clk_divide 1, CLK 50M
[    7.643934] sd_mmc_init() is completed successfully!
[    7.648889] This SDHC card is working in Wide Bus and High Speed mode!
[    7.648896]
[    7.657412]  cardblksd: cardblksd1 cardblksd2
[    7.662517] monitor : INSERT
[    7.664180] hub 2-1.2:1.0: USB hub found
[    7.668888] hub 2-1.2:1.0: 3 ports detected
[    7.746783] VFS: Cannot open root device "cardblksd2" or unknown-block(253,2)

[    7.748367] Please append a correct "root=" boot option; here are the availab
le partitions:
[    7.756752] 1f00            4096 mtdblock0 (driver?)
[    7.761649] 1f01            4096 mtdblock1 (driver?)
[    7.766626] 1f02           16384 mtdblock2 (driver?)
[    7.771543] 1f03           16384 mtdblock3 (driver?)
[    7.776490] 1f04           20480 mtdblock4 (driver?)
[    7.781439] 1f05          524288 mtdblock5 (driver?)
[    7.786385] 1f06          196608 mtdblock6 (driver?)
[    7.791334] 1f07          524288 mtdblock7 (driver?)
[    7.796291] 1f08         2879488 mtdblock8 (driver?)
[    7.801231] fa20         2660352 avnftl8 (driver?)
[    7.806002] 1f09             384 mtdblock9 (driver?)
[    7.810951] 1f0a               8 mtdblock10 (driver?)
[    7.815983] 1f0b               8 mtdblock11 (driver?)
[    7.821018] fd00         7761920 cardblksd driver: cardblk
[    7.826487]   fd01         5711076 cardblksd1
[    7.830828]   fd02         2050048 cardblksd2
[    7.835166] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(253,2)

My bootargs is ...

bootargs=root=/dev/cardblksd2 rw rootfstype=ext3 androidboot.resolution=720p androidboot.serialno=DC29PUNA00018 rootwait init=/sbin/init console=ttyS0,115200n8 nohlt,a9_clk=800M clk81=200M mem=1024M mac=00Big GrinC:AA:A0:01:03

sdboot=mmc init;mmcinfo;fatload mmc 0:1 82000000 uImage-2.6.34;bootm 82000000;

Where do I have to check?


Reply

Logout Mark Read Team Forum Stats Members Help
j1nx build booting problem from SD card or NFS0