Open Daniel-Medeiros opened 9 years ago
Wired, nothing changed in the nandinstall script, I will give a try later
I also did the nandinstall but it won't boot! It only boots with the SD card! Followed the tutorials on the site.
Hope you can fix it!
I facing same problem also.. I suggest cubian team can create the nand version cubian os.
That link doesn´t solve this problem, at least not for me. Before I installed the actual Cubian-desktop-x1-a10-hdmi Image, I was running Cubian-base-r8-a10 from nand without any problems. After some unsuccessful boot attempts I installed r8 back into nand and it worked as before. So there can´t be an problem with the boot0 or boot1 code. And since I´m using the plain cubian kernel in both setups there can´t be an wrong uEnv.txt setting.
After some attempts, I mounted /dev/nandb and took a look into /var/log/messages. The problem is somewhere along these lines:
Oct 24 16:55:02 Cubian kernel: [ 29.131710] Mali DRM initialize, driver name: mali_drm, version 2.1 Oct 24 16:55:02 Cubian kernel: [ 29.157335] [drm] Initialized mali_drm 2.1.1 20101111 on minor 0 Oct 24 16:55:02 Cubian kernel: [ 29.175213] Mali DRM initialize, driver name: mali_drm, version 2.1 Oct 24 16:55:02 Cubian kernel: [ 29.182583] [drm] Initialized mali_drm 2.1.1 20101111 on minor 1 Oct 24 16:55:02 Cubian kernel: [ 29.206471] UMP<2>: New session opened Oct 24 16:55:03 Cubian networklight: wait interfaces ready, waiting 10 seconds Oct 24 16:55:03 Cubian networktime: wait interfaces ready Oct 24 16:55:03 Cubian networktime: wait 60 seconds Oct 24 16:55:13 Cubian networklight: start probe interfaces Oct 24 16:55:13 Cubian networklight: network interface eth0 online Oct 24 16:55:13 Cubian networklight: Waiting IP address for 20 seconds Oct 24 16:55:39 Cubian networklight: start show ip address by morse code through led Oct 24 16:55:39 Cubian networklight: IP address 192.168.2.18 Oct 24 16:56:03 Cubian networktime: execute ntpdate Oct 24 16:56:03 Cubian networktime: start probe interfaces Oct 24 16:56:03 Cubian networktime: network interface eth0 online Oct 24 16:56:03 Cubian networktime: Waiting IP address for 20 seconds Oct 24 16:56:24 Cubian networktime: system is busy, current 1.27 maximium 0.8, process deferred Oct 24 16:56:24 Cubian networktime: wait 120 seconds Oct 24 16:58:24 Cubian networktime: execute ntpdate Oct 24 16:58:24 Cubian networktime: start probe interfaces Oct 24 16:58:24 Cubian networktime: network interface eth0 online Oct 24 16:58:24 Cubian networktime: Waiting IP address for 20 seconds Oct 24 16:58:44 Cubian networktime: system is busy, current 0.91 maximium 0.8, process deferred Oct 24 16:58:44 Cubian networktime: wait 240 seconds Oct 24 16:59:27 Cubian kernel: [ 294.229756] Dev Sunxi softw311 nand: part 1, start 16, size 2048 Oct 24 16:59:27 Cubian kernel: [ 294.235156] Dev Sunxi softw311 nand: part 2, start 2064, size 7976944 Oct 24 16:59:27 Cubian kernel: [ 294.237615] nand: nanda nandb Oct 24 16:59:27 Cubian kernel: [ 294.247723] Dev Sunxi softw311 nand: part 1, start 16, size 2048 Oct 24 16:59:27 Cubian kernel: [ 294.253123] Dev Sunxi softw311 nand: part 2, start 2064, size 7976944 Oct 24 16:59:27 Cubian kernel: [ 294.257655] nand: nanda nandb Oct 24 16:59:40 Cubian kernel: [ 307.025422] EXT4-fs (nandb): mounted filesystem with ordered data mode. Opts: (null) Oct 24 16:59:41 Cubian kernel: [ 307.966296] EXT4-fs (nandb): mounted filesystem with ordered data mode. Opts: (null) Oct 24 17:02:44 Cubian networktime: execute ntpdate Oct 24 17:02:44 Cubian networktime: start probe interfaces Oct 24 17:02:44 Cubian networktime: network interface eth0 online Oct 24 17:02:44 Cubian networktime: Waiting IP address for 20 seconds Oct 24 17:03:04 Cubian networktime: system is busy, current 4.48 maximium 0.8, process deferred Oct 24 17:03:04 Cubian networktime: wait 480 seconds Oct 24 17:11:04 Cubian networktime: execute ntpdate Oct 24 17:11:04 Cubian networktime: start probe interfaces Oct 24 17:11:05 Cubian networktime: network interface eth0 online Oct 24 17:11:05 Cubian networktime: Waiting IP address for 20 seconds Oct 24 17:11:25 Cubian networktime: system is busy, current 3.74 maximium 0.8, process deferred Oct 24 17:11:25 Cubian networktime: wait 960 seconds
Same problem for me, I've tried to flash back to lubuntu, and install by cubian-nandinstall but nothing.
I have got the same problem with X1. I install cubian r8 from nand without problems
Tried to upgrade to Cubian X. Same problem - NAND Install results in NAND boot getting no further than the Cubian X splash screen. It then freezes.
During the NAND Install the system seems to get 'stuck' for a long time - I'm suspicious that although the installer claims that it's run successfully, something is not getting completed.
I found the culprit using serial port debugging. uEnv.txt is not updated by cubian-nandinstall because the regular expression is wrong. Root partition must be changed to /dev/nandb, but it isn't. To fix, modify /usr/sbin/cubian-nandinstall:172 to
sed -e 's|root=/dev/mmcblk0p.|root='$NAND_ROOT_DEVICE'|g' -i $MNT_ROOT/boot/uEnv.txt
After the change, I re-run cubian-nandinstall and booted into nand without issues.
@skaczor :+1:
Awesome @skaczor ! Thanks !
I still facing problem, maybe the way i'm doing not correct.
Few question. Pls answer me. Thanks. 1.)/usr/sbin/cubian-nandinstall link to /usr/lib/cubian-nandinstall/install.sh (yes/no)? 2.)can I edit /usr/lib/cubian-nandinstall/install.sh 3.)modify /usr/sbin/cubian-nandinstall:172 to
sed -e 's|root=/dev/mmcblk0p.|root='$NAND_ROOT_DEVICE'|g' -i $MNT_ROOT/boot/uEnv.txt ?
change "sed -e 's|root=/dev/mmcblk0p1" to "sed -e 's|root=/dev/mmcblk0p." or "sed -e 's|root=/dev/nandb" Where we need to change to"/dev/nandb?? uEnv.txt or cubian-nandinstall script???
I change it to "sed -e 's|root=/dev/mmcblk0p.|root='$NAND_ROOT_DEVICE'|g' -i $MNT_ROOT/boot/uEnv.txt" and re-run the script cubian-nandinstall still can not boot from nand.
Hi, I had to reinstall cubian to nand today (using the cubian-nandinstal script), I downloaded this img: http://cubieplayer.github.io/static_files/torrents/Cubian-nano-x1-a20-cubietruck-hdmi.img.7z.torrent.
I had the uEnv.txt issue to solve ( great job skaczor!!) but also another problem: The Operating system didn't boot, and I had to flash a lubuntu image with the livesuit before installing cubian and then it worked. Some rumor says on internet that the lubuntu livesuit image write something on the 512 first bytes of the nand. So i dd these 512 bytes on a file:
http://xorg.power-heberg.com/cubie/ct_512_head.bin
If someone encounters the same problem can he test to dd my file back to his nand and check if it works.
:+1: @skaczor for the guide , fixed my issue (almost a year later :/)
only boots on sdcard, now after i edited script.bin to make it dualboot it doesn't copy to nand anymore :-1: need help guys i was fallowing the tutorials from cubian.org but it doesn't work for me for some reason...