pingvincible Posted September 19, 2015 Share Posted September 19, 2015 HI! I have debian wheezy with kernel 3.4.106. When I ran nand-sata-install script, it executed successfully. But after that system doesn't boot from nand. Just black screen. Any help please? Link to comment Share on other sites More sharing options...
Igor Posted September 19, 2015 Share Posted September 19, 2015 Check bugs and limitation section on the board description / download page. Legacy kernel. Link to comment Share on other sites More sharing options...
pingvincible Posted September 19, 2015 Author Share Posted September 19, 2015 Thank you, after installing lubuntu and executing nand-sata-install system booted. But I've got one error. I compiled wi-fi driver to use usb wifi module. Wifi works well while system was on sd-card. After copying system to nand driver shows some errors and module doesn't work. Can you give me some advice to make it work? Link to comment Share on other sites More sharing options...
Igor Posted September 19, 2015 Share Posted September 19, 2015 Can you attach the error or simply recompile the driver. Link to comment Share on other sites More sharing options...
pingvincible Posted September 21, 2015 Author Share Posted September 21, 2015 error messages looks like this: RtmpAsicLoadFirmware: ver 21/21, sum cdf7/cdf7, mac cdf72100 NICLoadFirmware: firmware loaded already Error in Alloc Bulk buffer for HTTxContext! RTMPAllocTxRxMemory failed, Status[=0x00000003] RTMPFreeTxRxRingMemory RTMPFreeTxRxRingMemory rt28xx Initialized fail!!! Link to comment Share on other sites More sharing options...
pingvincible Posted September 22, 2015 Author Share Posted September 22, 2015 Recompilation of the driver gave me nothing... Link to comment Share on other sites More sharing options...
Igor Posted September 22, 2015 Share Posted September 22, 2015 If everything was correctly installed the only difference is u-boot and separate boot partition. This can provoke certain troubles but I never heard for such. Double check that you have correct script.bin on (boot) nand1 partition. When you install to nand, script bin from SD card /boot/script.bin is copied there, kernel zImage is converted to uImage and copied there ... Link to comment Share on other sites More sharing options...
pingvincible Posted September 25, 2015 Author Share Posted September 25, 2015 Script.bin is copied correct. Why are you converting image, can't I just copy it? Link to comment Share on other sites More sharing options...
Igor Posted September 25, 2015 Share Posted September 25, 2015 If you copy it won't work. Simple as that. zImage kernel type is not supported by that boot loader for which I don't have sources or newer version. Yet. Eventually this will be solved too but now there is no other way. Link to comment Share on other sites More sharing options...
pingvincible Posted September 26, 2015 Author Share Posted September 26, 2015 Is it possible to use kernel newer than 3.10 in your debian wheezy? Link to comment Share on other sites More sharing options...
Igor Posted September 26, 2015 Share Posted September 26, 2015 You mean in a combination with NAND? Doubt, I don't think it exits. If you need a modern kernel, go for Vanilla, latest stable which is available for download is 4.2 and it's in much better condition than any kernel down to 3.4.108 (latest legacy). All my images are upgradable from 3.4.x to 4.1x and back. Check docs for details. Just remember to upgrade an u-boot not just kernel. Link to comment Share on other sites More sharing options...
pingvincible Posted September 26, 2015 Author Share Posted September 26, 2015 I need to use i2c, uart, sound, gpio and nand. As I understood not all of this would work in vanilla kernel? I thought about newer kernel because my wifi adapter driver is in kernel since 3.10. Link to comment Share on other sites More sharing options...
Igor Posted September 26, 2015 Share Posted September 26, 2015 Than you only can go for 3.4.x at the moment. For WiFi try to build the module or change for supported one. Wrote on mobile phone Link to comment Share on other sites More sharing options...
pingvincible Posted September 26, 2015 Author Share Posted September 26, 2015 Oh, God! Got it worked. After installing your latest image I saw a message from driver that 256KiB of coherent pool is insufficient. Added coherent_pool=2M to extraags of uEnv.txt and became very happy!!! On 3.4.106 kernel worked too! Link to comment Share on other sites More sharing options...
pingvincible Posted September 26, 2015 Author Share Posted September 26, 2015 Maybe will be useful for you. I found one nand install script on github: https://github.com/remahl/Cubietruck_sd2nand/blob/master/nand-install.sh. There is using of nand-part for creating partitions. This script will partition nand itself before copying bootfs and rootfs. And there will be no need to flash lubuntu to make good partitioning before using nand-sata-install Link to comment Share on other sites More sharing options...
Igor Posted September 26, 2015 Share Posted September 26, 2015 That's a fork of my early script Lubuntu flash is needed if this procedure fails, if your NAND come without boot loader, ... It's not possible to achieve this otherwise. Wrote on mobile phone Link to comment Share on other sites More sharing options...
pingvincible Posted September 28, 2015 Author Share Posted September 28, 2015 I thought that it may be part of your script. Thank you for the help! Link to comment Share on other sites More sharing options...
pingvincible Posted September 30, 2015 Author Share Posted September 30, 2015 I remebered that some time ago I wrote a script to partition nand based on someones script. #!/bin/bash card='/dev/disk/by-id/mmc-SD02G_0xa361fa92' targetdir='rootfs' echo "Copying nand-install.sh to rootfs/root..." echo "" cp ./sd2nand/nand-install.sh ${targetdir}/root cp ./sd2nand/nand-install-no-prompt.sh ${targetdir}/etc/init.d echo "Copying bootpartition.tar.gz to rootfs/root..." echo "" cd ./sd2nand/bootpartition/ tar -zcvf bootpartition.tar.gz ./* cd ../../ mv ./sd2nand/bootpartition/bootpartition.tar.gz ${targetdir}/root read -p "Done. Press Enter... " -n1 -s echo "" echo "Unmounting partitions..." echo "" umount ${card}-part1 umount ${card}-part2 read -p "Done. Press Enter... " -n1 -s echo "" echo "Cleaning 1 MB..." dd if=/dev/zero of=${card} bs=1M count=1 read -p "Done. Press Enter... " -n1 -s echo "" echo "Writing u-boot..." dd if=u-boot-sunxi-with-spl-ct-20131102.bin of=${card} bs=1024 seek=8 read -p "Done. Press Enter... " -n1 -s echo "" echo "Making partitions..." cat <<EOT | sfdisk --force --in-order -uS $card 2048,524288,L 526336,,L EOT read -p "Done. Press Enter... " -n1 -s echo "" echo "Creating fs part1... " mkfs.ext2 ${card}-part1 read -p "Creating fs part2. Press enter... " -n1 -s echo "" mkfs.ext4 ${card}-part2 read -p "Done. Press Enter... " -n1 -s echo "" mkdir /run/ct1 mkdir /run/ct2 mount ${card}-part1 /run/ct1 mount ${card}-part2 /run/ct2 #tar -C /run/ct1 -xvf bootfs-part1.tar.gz echo "Copying bootfs..." cp bootfs/* /run/ct1 read -p "Done. Press Enter... " -n1 -s echo "" echo "Rsyncing rootfs..." rsync -axPHS --delete $targetdir/ /run/ct2 > /dev/null read -p "Done. Press Enter... " -n1 -s echo "" echo "Umounting bootfs..." umount /run/ct1 echo "Umounting rootfs..." umount /run/ct2 echo "Done." echo "Removing temp folders..." rm /run/ct1 -R rm /run/ct2 -R echo "Done." echo "Ejecting card..." eject $card echo "Done." Why don't you use something similar in your nand-sata-install script. Maybe you know some drawbacks of this method? Sorry for my english, if it sounds rude. Link to comment Share on other sites More sharing options...
Recommended Posts