2013-01-22, 04:24
since xbmc is up, you should be able to ssh in.
/root/.xbmc/temp/xbmc.log
/root/.xbmc/temp/xbmc.log
sh: glxinfo: not found
XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver.
Please consult XBMC Wiki for supported hardware
http://wiki.xbmc.org/?title=Supported_hardware
xbmc.bin: /home/stephen/SteveDev/buildroot-AmLogic/output/build/xbmc-0987bea35050a3f5d352c3205d75b7173a7d126d/xbmc/utils/MathUtils.h:166: int MathUtils::truncate_int(double): Assertion `x > static_cast<double>((-2147483647 - 1) / 2) - 1.0' failed.
(2013-01-22, 18:56)davilla Wrote: you have to setup the paths and env vars
that Assertion is because you have something wrong
(2013-01-22, 17:43)davilla Wrote: nothing jumps out
run xbmc under gdb, then you can backtrace the crash
gdb /opt/xbmc-aml/usr/lib/xbmc/xbmc.bin
gdb> run --standalone
/ # env
USER=root
HOME=/
a9_clk=600M
clk81=187500000
logo=osd1
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
SHELL=/bin/sh
PWD=/
resolution_size=1280,720
/ # cd /usr
/usr # ls
bin lib libexec sbin share
/usr # cd lib
/usr/lib # cd xbmc
/usr/lib/xbmc # ls
addons system xbmc.bin
/usr/lib/xbmc # gdb /usr/lib/xbmc/xbmc.bin
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-unknown-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/xbmc/xbmc.bin...(no debugging symbols found)...done.
(gdb) run --standalone
Starting program: /usr/lib/xbmc/xbmc.bin --standalone
[Thread debugging using libthread_db enabled]
Could not init logging classes. Permission errors on ~/.xbmc (/.xbmc/temp/)
ERROR: Unable to create application. Exiting
Program exited with code 0377.
[ 2.217110] nand env: nand_env_probe.
[ 2.220612] set nand parts for chip 4096MB
[ 2.244401] Creating 8 MTD partitions on "B revision 26nm NAND 4GiB H27UBG8T2B":
[ 2.246243] 0x000001400000-0x000001800000 : "ubootenv"
[ 2.253028] 0x000001800000-0x000002800000 : "aml_logo"
[ 2.261890] 0x000002800000-0x000003800000 : "recovery"
[ 2.267308] 0x000003800000-0x000004c00000 : "boot"
[ 2.274158] 0x000004c00000-0x000024c00000 : "system"
[ 2.436218] 0x000024c00000-0x000030c00000 : "cache"
[ 2.494767] 0x000030c00000-0x000050c00000 : "userdata"
[ 2.651134] 0x000050c00000-0x000100000000 : "NFTL_Part"
[ 4.759168] nftl initilize completely dev size: 0xa1e00000 5
[ 4.759853] avnftl8: unknown partition table
[ 4.763687] nftl release flush cache data: 0
[ 9.856337] yaffs: dev is 32505859 name is "mtdblock3" rw
[ 9.856371] yaffs: passed flags ""
mount: mounting /dev/mtdblock3 on /recovery failed: Invalid argument
chown: unknown user/group default:default
S10setup: init fb0, fb1
2880+0 records in
2880+0 records out
3686400 bytes (3.5MB) copied, 0.013209 seconds, 266.2MB/s
2880+0 records in
2880+0 records out
3686400 bytes (3.5MB) copied, 0.013288 seconds, 264.6MB/s
S10setup: remount / rw
S10setup: checking keys
generating rsa key... generating dsa key... S10setup: moving /etc
S10setup: moving /media
S10setup: mounting /tmp/userdata
[ 12.348418] yaffs: dev is 32505863 name is "mtdblock7" rw
[ 12.348465] yaffs: passed flags ""
[ 12.351754] yaffs2 check point failed.
[ 13.346526] aml nand read data ecc failed at page:116728 blk 455 chip 0, readretry_failed_cnt:1
[ 13.349754] HYNIX NAND set partmeters here and hynix_read_retry_cnt:0
[ 13.356191] Enter aml_nand_set_reg_value_hynix
[ 13.360589] aml_nand_set_reg_value_hynix, REG(0xa7): value:0x21 for chip[0]
[ 13.367620] aml_nand_set_reg_value_hynix, REG(0xad): value:0x27 for chip[0]
[ 13.374627] aml_nand_set_reg_value_hynix, REG(0xae): value:0x7c for chip[0]
[ 13.381632] aml_nand_set_reg_value_hynix, REG(0xaf): value:0xc5 for chip[0]
[ 14.022418] aml nand read data ecc failed at page:114074 blk 445 chip 0, readretry_failed_cnt:1
[ 14.025668] HYNIX NAND set partmeters here and hynix_read_retry_cnt:1
[ 14.032061] Enter aml_nand_set_reg_value_hynix
[ 14.036499] aml_nand_set_reg_value_hynix, REG(0xa7): value:0x0 for chip[0]
[ 14.043416] aml_nand_set_reg_value_hynix, REG(0xad): value:0x1e for chip[0]
[ 14.050422] aml_nand_set_reg_value_hynix, REG(0xae): value:0x6b for chip[0]
[ 14.057447] aml_nand_set_reg_value_hynix, REG(0xaf): value:0xb7 for chip[0]
S10setup: remount / ro
S10setup: switching to ondemand
S10setup: done
ifdown: interface eth0 not configured
ifdown: interface wlan0 not configured
udhcpc (v1.17.4) started
Failed to kill daemon: No such file or directory
Sending discover...
[ 21.603098] nftl creat stucture completely free blk: 5 erased blk: 1388
Sending select for 192.168.1.131...
Lease of 192.168.1.131 obtained, lease time 86400
Failed to kill daemon: No such file or directory
[ 22.675545] set hash low=2,high=800001
[ 22.677596] set hash low=2,high=810001
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.1.254
(2013-01-23, 05:03)davilla Wrote: whao, jumping around to much, I can't followOops - sorry...
Quote:#1, disable auto launch of xbmcThink I've done this by renaming /etc/init.d/s95xbmc as old-s95xbmc (Looking at rcS in init.d it appears to run all the S?? scripts in numerical order - so renaming any script so that it doesn't start with S stops it being executed?)
Quote:#2, enable dhcp by changing /etc/network/interface from manual to dhcpDo I need to enable dhcp - if I pass a static ip from uBoot via my bootargs, can I keep with this - makes SSHing and TVHeadend access a lot easier if I know the IP address of the box without having to type ifconfig?
Quote:Aah. I think I see that this is important. At the moment HOME=/ according to my busybox environment. Can I send HOME=/root as a bootargs bit from uBoot (asking as I'm away from my dev set-up today)
#3, export HOME=/root
Quote:#4 disable network management in xbmc, ie. in xbmc/advancedsettings.xml, remove <enablenetworkmanager>1</enablenetworkmanager>Is this file in my usr.sqsh? How is it best to deal with this. I'm not sure I know where usr.sqsh is being mounted (or is it bound?) to /usr. Would it be better, for dev purposes, to run with a /usr directory populated on my NFS share and not mount the usr.sqsh? I'm not sure how to edit the contents of usr.sqsh (Mount it, copy the contents to a directory, edit them, and resquash?)
Quote:now get boot, setup of rootfs right. once that's right, then you can launch xbmc manually.
(2013-01-23, 17:09)davilla Wrote: 4) see buildroot-linux -> package/thirdparty/xbmc/advancedsettings.xml
(2013-01-23, 05:03)davilla Wrote: whao, jumping around to much, I can't followdone
#1, disable auto launch of xbmc
Quote:#2, enable dhcp by changing /etc/network/interface from manual to dhcpHave left on static IP
Quote:#3, export HOME=/rootDid this by typing export HOME=/root at busybox # prompt
/ # export HOME=/root
/ # env
USER=root
HOME=/root
a9_clk=600M
clk81=187500000
logo=osd1
TERM=vt102
PATH=/sbin:/usr/sbin:/bin:/usr/bin
SHELL=/bin/sh
PWD=/
resolution_size=1280,720
Quote:#4 disable network management in xbmc, ie. in xbmc/advancedsettings.xml, remove <enablenetworkmanager>1</enablenetworkmanager>Done
Quote:now get boot, setup of rootfs right. once that's right, then you can launch xbmc manually.
/ # xbmc
sh: glxinfo: not found
XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver.
Please consult XBMC Wiki for supported hardware
http://wiki.xbmc.org/?title=Supported_hardware
/ # su
~ # xbmc
sh: glxinfo: not found
XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver.
Please consult XBMC Wiki for supported hardware
http://wiki.xbmc.org/?title=Supported_hardware
~ # glxinfo
sh: glxinfo: not found
~ #
[ 20.858039] nftl creat stucture completely free blk: 7 erased blk: 1385
[ 44.899369] aml nand write failed at 102916