Compare Products, Prices & Stores For:

COMPUTERS, COMPONENTS COMPUTER ACCESSORIES, COMPUTER MEMORY, HARDWARE, INPUT DEVICES, NETWORKING, PDAs & MOBILE ELECTRONICS, SOFTWARE, STORAGE & MEDIA, DIGITAL CAMERAS, HOME AUDIO, TV& VIDEO

Google
 
Web DealDatabase.com
What are you shopping for?


Go Back   DealDatabase Forum - Deals, Freebies, and TiVo & DirecTivo Hacking > Category: NEW TiVo, DTiVo, Extraction FORUMS! > FILES - All TiVo & DTiVo Files

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-05-2004, 07:17 PM
alldeadhomiez alldeadhomiez is offline
Moderator
 
Join Date: Jan 2002
Posts: 1,778
I have attached the bootpage code I am using. Changes from the old version:

- fixed off-by-one on kernel partitions
- changed some outputs to match TiVo bootpage
- added byteswap auto-detection
- improved (?) command line parsing
- other minor fixups, probably introduced more bugs

This should support a lot more of the original bootpage options than the tridge code.

The original author of this code is unknown. If you know who wrote it, please contact me so I can add them to the credits.

If you maintain a TiVo utilities CD, please replace your bootpage binary with this one. The off-by-one kernel partition numbering on the old version has caused much confusion and grief among novice users.

Quick usage notes:

The boot page (sector 0 of your TiVo "A" drive) contains several interesting settings used by the PROM during the boot process. Three of the most important settings are:

- boot kernel partition: tells the PROM which partition to look in for a bootable kernel image
- alternate kernel partition: during a software upgrade, "bootpage -f" is invoked to flip the boot and alternate partition numbers in the bootpage, after the new kernel image has been written to the alternate partition. The PROM itself does not look at this field.
- boot parameters (kernel command line): this is passed verbatim to the kernel to tell it the root partition (hda4 or hda7), and often is used to pass environment variables or other kernel options ("dsscon=true console=2,115200", "upgradesoftware=false", etc.)

To find your active root partition, run bootpage -p /dev/<DEVICE> (<DEVICE> will vary, depending on where the TiVo drive is set up in your PC):

Code:
# bootpage -p /dev/hdc
root=/dev/hda4 dsscon=true console=2,115200
Obviously, the kernel command line uses device names from the perspective of the TiVo kernel, not from the perspective of your PC. Thus you will never see something like "root=/dev/hdcX" in the kernel command line.

To find your active kernel partition, run bootpage -b /dev/<DEVICE>:

Code:
# bootpage -b /dev/hdc
3
In this case, your kernel partition is accessible from the PC as /dev/hdc3, so if you wish to replace the kernel (say, with a killhdinitrd'ed kernel) you would do something like:

Code:
# dd if=kernel.img of=/dev/hdc3
Note that older versions of the x86 bootpage utility don't always give you the results you expect. If you have any doubts about what version you are running, download the one in this post to be safe.
Attached Files
File Type: zip bootpage-20040921.zip (199.9 KB, 6532 views)

Last edited by alldeadhomiez; 11-18-2004 at 08:09 PM.
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2000-2008 © dealdatabase.com.
TiVo® is a registered trademark of TiVo Inc. This site is not affiliated with TiVo Inc.