luca219 Posted March 2, 2016 Share Posted March 2, 2016 hi all, Use an old version of cubietruck. I Can use the new script /usr/lib/nand-sata-install for install my old version? Kernel 3.4.104-sunxi regards Link to comment Share on other sites More sharing options...
Igor Posted March 2, 2016 Share Posted March 2, 2016 You can try ... worst case is you won't be possible to boot from nand. Beware to include all files, otherwise it won't work. https://github.com/igorpecovnik/lib/tree/master/scripts/nand-sata-install/usr/lib/nand-sata-install Link to comment Share on other sites More sharing options...
luca219 Posted March 2, 2016 Author Share Posted March 2, 2016 what do you mean " Beware to include all files" I need also this? /boot/*/dev/*/proc/*/sys/*/media/*/mnt/*/run/*/tmp/* Link to comment Share on other sites More sharing options...
Igor Posted March 2, 2016 Share Posted March 2, 2016 Yes, you need all. Link to comment Share on other sites More sharing options...
luca219 Posted March 5, 2016 Author Share Posted March 5, 2016 i tried, boot on nand and system on sata not work. when script ended remove sd card , press poweron but cubietruck does not start. All frontal led are off. can someone help me? Link to comment Share on other sites More sharing options...
sbkg0002 Posted March 7, 2016 Share Posted March 7, 2016 i tried, boot on nand and system on sata not work. when script ended remove sd card , press poweron but cubietruck does not start. All frontal led are off. can someone help me? Had the same on a Cubieboard v1. Flash a linux NAND image and do the nand-sata-install again. Link to comment Share on other sites More sharing options...
luca219 Posted March 9, 2016 Author Share Posted March 9, 2016 i have flash nand with lubuntu. run nand-sata-install and select boot on nand and system on sata all done, but no boot. All frontal led are off. exists wiki for manual process? regards Link to comment Share on other sites More sharing options...
sbkg0002 Posted March 9, 2016 Share Posted March 9, 2016 Did you update the nand-sata-install script, or made sure that nand-part was found on the sdcard installation? Be sure to run: su - ln -s /usr/bin/sunxi-nand-part /usr/bin/nand-part Before you run the script. So now you have to install lubuntu again, start from sdcard, run the command above and run the script... Link to comment Share on other sites More sharing options...
luca219 Posted March 12, 2016 Author Share Posted March 12, 2016 nand-part present ln: failed to create symbolic link `/usr/bin/nand-part': File exists format nand with linaro, run script install again, all done result: no boot from nand. I have restart cubietruck with sdcard mount /dev/nand1 /mnt/nand1 /dev/nand1 on /mnt/nand1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro) ls /mnt/nand1/ boot.axf boot.ini linux uEnv.txt uImage mount /dev/nand2 /mnt/nand2 /dev/nand2 on /mnt/nand2 type ext4 (rw,relatime) ls -la /mnt/nand2/ total 24 drwxr-xr-x 3 root root 4096 mar 11 17:13 . drwxr-xr-x 7 root root 4096 mar 12 12:59 .. drwx------ 2 root root 16384 mar 11 17:13 lost+found Link to comment Share on other sites More sharing options...
Igor Posted March 12, 2016 Share Posted March 12, 2016 Did you start from clean image? Have you installed anything extraordinary, have you mounted anything to the system, ...? Briefly describe mods to your system. Link to comment Share on other sites More sharing options...
luca219 Posted March 16, 2016 Author Share Posted March 16, 2016 hi, thanks for your replay. If use old script nand-install.sh work fine. Probably if mount manually sda, copy with rsync file and set fstab sysfs.conf work. I have a doubt: there are difference for package old nand1-cubietruck-debian-boot.tgz present in old version and package present in new script? Link to comment Share on other sites More sharing options...
Igor Posted March 17, 2016 Share Posted March 17, 2016 If you manually combine old scripts and new installs it might not work. Recent installers are organized differently - they don't need this package anymore. Link to comment Share on other sites More sharing options...
luca219 Posted March 18, 2016 Author Share Posted March 18, 2016 hi , use old version of cubietruck Linux cubie 3.4.104-sunxi #1 SMP PREEMPT Fri Oct 17 16:13:30 CEST 2014 armv7l GNU/Linux Debian GNU/Linux 7 \n \l If use latest script for me no work, but if follow this step work fine. Boot cubietruck with sdcard. Install system in nand with /root/nand-install.sh mount /dev/nand1 /mnt/nand1 mount /dev/nand2 /mnt/nand2 mount /dev/sda1 /mnt/sda1 ( for new sda fdisk /dev/sda opz n ,1, p,w after mkfs.ext4 /dev/sda1) rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/sda1 nano /mnt/sda1/etc/fstab change /dev/mmcblk0p1 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro 0 0 to /dev/sda1 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro 0 1 change in /mnt/nand1/uEnv.txt nand_root=/dev/nand2 rootwait to nand_root=/dev/sda1 rootwait reboot , remove sdcard and work fine df -h Filesystem Size Used Avail Use% Mounted on rootfs 117G 3,1G 108G 3% / /dev/root 117G 3,1G 108G 3% / devtmpfs 1000M 0 1000M 0% /dev tmpfs 128M 296K 128M 1% /run tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 128M 0 128M 0% /run/shm tmpfs 1,0G 0 1,0G 0% /tmp /dev/root 117G 3,1G 108G 3% /var/log.hdd ramlog-tmpfs 512M 36M 477M 7% /var/log any suggestion? the script is more simple regards Link to comment Share on other sites More sharing options...
luca219 Posted March 18, 2016 Author Share Posted March 18, 2016 I correct myself. file system read only in boot [FAIL] startpar:service(s) returned failure: checkroot-bootclean.sh .. failed! [FAIL] Setting sysfs variables.. unknow attribute Link to comment Share on other sites More sharing options...
luca219 Posted March 22, 2016 Author Share Posted March 22, 2016 find this solution, for those who have problems with the script. Best way for install cubietruck on hard disk is this script if this if this does not work this could help. Install system in Nand with script present , in my case ,old version, is in /root/nand-install.sh remove SD Card and reboot with the hard disk connected. # fdisk /dev/sda Use “p†(print partition of a drive), “d†delete a partition or “n†(create new partition). The partition should be of type “83â€. Format the partition for rootfs with EXT4 filesystem: # mkfs.ext4 /dev/sda1 sudo su - root # rsync -aAXv /dev/nand2 /dev/sda1 changing boot parameters # sudo su - root # mount /dev/nand1 /mnt # nano /mnt/uEnv.txt Change the contents of uEnv.txt from “nand_root=/dev/nand2†to “nand_root=/dev/sda1 # umount /mnt # sync # reboot Link to comment Share on other sites More sharing options...
tkaiser Posted March 22, 2016 Share Posted March 22, 2016 uEnv.txt So the problem is that you're still using an outdated u-boot version relying on uEnvt.txt and that's the reason the script doesn't work since it adjusts boot.cmd instead? Link to comment Share on other sites More sharing options...
luca219 Posted March 23, 2016 Author Share Posted March 23, 2016 yes, i use old version!! now I understand why it does not work! I could update only the files in the boot [/dev/nand1/] , and maintain all file in sda1, It might work? thanks Link to comment Share on other sites More sharing options...
Recommended Posts