Thanks for your help.
I now have my working kernel for picuntu.....
# Start a grubesque menu TIMEOUT=9 clear echo echo "----------------------------------------------------------------------" echo "-------Boot menu:-----------------------------------------------------" echo "----------------------------------------------------------------------" echo "----------------------------------------------------------------------" echo "------------ 1) Linux NAND (mtdblock2)... ----------------------------" echo "------------ 2) Linux HDD (/dev/sda1)... ----------------------------" echo "------------ 3) Enter your (/???/????)... ----------------------------" echo "----------------------------------------------------------------------" echo "----- Enter 1,2,3 to boot the selected OS... -------------------------" echo "----------------------------------------------------------------------" [ ${TIMEOUT} -gt 0 ] && echo "------Booted automatically in ${TIMEOUT} seconds... ---------------------------" echo "----------------------------------------------------------------------" read -n 1 -t ${TIMEOUT} ANSWER echo case "${ANSWER}" in 1) echo "----------------------------------------------------------------------" echo "--- Boot Linux NAND... -----------------------------------------------" echo "----------------------------------------------------------------------" BOOTTHE="/dev/mtdblock2" ;; 2) echo "----------------------------------------------------------------------" echo "--- Boot Linux HDD (/dev/sda1)... ------------------------------------" echo "----------------------------------------------------------------------" BOOTTHE="/dev/sda1" ;; 3) echo "----------------------------------------------------------------------" echo "--- Enter your (/???/???)... -----------------------------------------" echo "----------------------------------------------------------------------" read BOOTYOUR BOOTTHE=$BOOTYOUR ;; *) echo "----------------------------------------------------------------------" echo "------------------------ Auto boot -----------------------------------" echo "----------------------------------------------------------------------" echo "-------- Boot "/dev/mtdblock2" or set "/home/boot.def" ---------------" echo "----------------------------------------------------------------------" #Default boot mount -t ext4 /dev/mtdblock2 /mnt if [ -e /mnt/home/boot.def ] ; then BOOTDEF=`cat /mnt/home/boot.def` umount /mnt BOOTTHE=$BOOTDEF else BOOTTHE="/dev/mtdblock2" fi sleep 2 ;; esac
# Export relevant variables export ROOT=$BOOTTHE export ROOTDELAY=
# Parse command line options for x in $(cat /proc/cmdline); do case $x in init=*) init=${x#init=} ;; root=*) ROOT=${x#root=} ROOT=$BOOTTHE
There are currently 2102 users online. 3 members and 2099 guests.
Most users ever online was 63,956 at 18:56 on 20 March 2025.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment