Difference between revisions of "Bootie"

From WebOS Internals
Jump to navigation Jump to search
(New page: '''Current Version''': 145.2.6 for WebOS 1.0.3 stage3 bootloader of the device, unpacked from the end of boot.bin. loaded to **0x82000000** in memory and looks very similar to iBoot from ...)
 
Line 53: Line 53:
 
     autoboot = fsboot
 
     autoboot = fsboot
 
</nowiki></pre>
 
</nowiki></pre>
 
 
''Ported by hopspitfire''
 

Revision as of 18:37, 20 July 2009

Current Version: 145.2.6 for WebOS 1.0.3

stage3 bootloader of the device, unpacked from the end of boot.bin. loaded to **0x82000000** in memory and looks very similar to iBoot from the iPhoneOS devices. It seems to have a lot of u-boot code in it as well, judging by all of these very familiar commands.

Getting into bootie mode is as easy as holding the volume-up key while plugging the phone into USB while the phone is in the "off" state. The novaterm/novaproxy programs can then be used to talk to bootie.

The example help:

] help 
command list:
	nduid           : get the device id
	usb             : usb transfer commands
	lboot           : boot linux image
	klog            : klog commands
	printenv        : print all of the environment variables
	getenv          : read an environment variable
	setenv          : set an environment variable
	reset           : reset the device
	script          : run a script at specified address
	run             : run a script at from an environment variable
	return          : return from current script
	help            : this list
	version         : get bootie version
	charging        : commands to set charging states
	fsboot          : boot current image based on environment
	chainboot       : boot another bootloader image based on environment
	go              : Jump to a given address with the given arguments
	cpurev          : read the cpu revision
	diag            : perform diag operations: write, boot, verify
	poweroff        : power off completely

The default environment during boot:

] getenv
T   ? = 0
T   chargebypass = 0
T   framebuffer = 0x8f600000
T   boardtype = castle-dvt3
    installer = trenchcoat
T   klog_len = 0x100000
T   klog_addr = 0x8ff00000
T   logofile = boot/logo.tga
T   bootaddress = 0x81000000
T   bootfile = uImage
T   bootfs = ext2
T   bootdevice = mmc0p1
T   bootargs-ramdisk = root=/dev/ram0 ramdisk=32768 ro
T   bootargs = root=b302 rootdelay=2 ro
T   bootconsole = tty1
    autoboot = fsboot