Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

System does not boot from nand after nand-sata-install script

Featured Replies

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?

  • Author

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?

  • Author

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!!!

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 ...

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.

  • Author

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.

  • Author

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!

  • Author

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

  • Author

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.