View Single Post
Old 01-29-2014, 09:36 AM   #29
nnsense
Junior Member
nnsense began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2014
Device: nnsense
Hi
The same happen here (Kobo Aura HD). The original (/etc/init.d/upgrade-wifi.sh from the 3.1.1 update) is:

Code:
#!/bin/sh

if [ -e /mnt/onboard/.kobo/manifest.md5sum ]; then 
	cd /mnt/onboard/.kobo
	md5sum -c manifest.md5sum
	if [ $? != 0 ]; then
		rm -rf manifest.md5sum
		exit 1;
	fi
	rm -rf manifest.md5sum
	cd /
fi

PLATFORM=freescale
if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then
	PLATFORM=ntx508
fi

if [ $PLATFORM == ntx508 ]; then
        PCB=`ntx_hwconfig -s -p /dev/mmcblk0 PCB`
        RAM=`ntx_hwconfig -s -p /dev/mmcblk0 RAMType`
	RAM_SIZE=`ntx_hwconfig -s -p /dev/mmcblk0 RamSize`
	RAM_SIZE=`echo $RAM_SIZE | awk '{print $RAM_SIZE-MB}'`
        NEW_UBOOT=/mnt/onboard/.kobo/upgrade/$PLATFORM/u-boot_mddr_$RAM_SIZE-$PCB-$RAM.bin
        NEW_KERNEL=/mnt/onboard/.kobo/upgrade/$PLATFORM/uImage-$PCB
	[ -e $NEW_UBOOT ] && UBOOT=$NEW_UBOOT
	[ -e $NEW_KERNEL ] && KERNEL=$NEW_KERNEL
fi

WAVEFORM=/mnt/onboard/.kobo/upgrade/waveform

[ $PLATFORM == freescale ] && UBOOT=/mnt/onboard/.kobo/upgrade/u-boot.bin
[ $PLATFORM == freescale ] && KERNEL=/mnt/onboard/.kobo/upgrade/uImage

echo your platform is $PLATFORM
echo $UBOOT
echo $KERNEL

/etc/init.d/upgrade-generic.sh $UBOOT $WAVEFORM $KERNEL mmcblk0

exit $?
unfortunately, as told, for us is nearly useless if actually the internal SD is just not an SD.
nnsense is offline   Reply With Quote