View Single Post
Old 11-11-2010, 01:38 AM   #179
curstpriest
Confused
curstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toys
 
curstpriest's Avatar
 
Posts: 402
Karma: 5538
Join Date: Oct 2010
Location: Bay Area
Device: Kindle DXG
I don't quite get how the bootloader even works, it looks like option 3 boots into USBnet mode + telnet server? Looks like it, they also provide usb net driver in their install package:

echo "sub Lan"
mntroot rw
rmmod g_file_storage
rmmod g_ether
modprobe g_ether
ifconfig usb0 192.168.0.88
route add default gw 192.168.0.1
echo nameserver 208.67.222.222 > /etc/resolv.d/resolv.conf.default
echo nameserver 208.67.220.220 >> /etc/resolv.d/resolv.conf.default
cp /etc/resolv.d/resolv.conf.default /var/run/resolv.conf
/mnt/us/DK_System/bin/busybox telnetd
display_logo_screen
mntroot ro
return 0;


It does a check for mv /etc/rc5.d/S96rundk /etc/rc5.d/s96rundk constantly, I assume it's because the partition is fat32 and it has to make sure it's lowercase, and they copied it over directly rather than extracting it from a tarball.

dkswitchmenu.bin seems to take the input for the 3 menu choices?
dkswitch.bin seems to boot into the os

From reading the scripts, here are the files it appears to install:

(these are generated + removed by install.sh)

/etc/rcS.d/S79switch
/etc/rc5.d/s96rundk
/etc/rc5.d/S96rundk
/etc/rc5.d/rundk.sh
/dev/DK_Debug.log

(debug log is probably not even created I think debugging is disabled, should see file in DK_SYSTEM folder cat /dev/DK_Debug.log >> /mnt/us/DK_System/DK_Debug.log)

It removes these 2 files all on its own for some reason, since they are in /dev i assume they are also generated by it because usually stuff should not be in /dev:
/dev/viewinfodat.txt
/dev/viewinfodat1.txt

What is the kindle's normal rc script?
What happens if these 4 are simply removed?

Last edited by curstpriest; 11-11-2010 at 01:40 AM.
curstpriest is offline   Reply With Quote