xboxscene.org forums

Pages: [1] 2

Author Topic: Xboxhdm3 Alpha Release Development  (Read 108 times)

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« on: May 11, 2010, 07:59:00 AM »

Continued from here

QUOTE(ldotsfan @ Apr 26 2010, 09:39 PM) View Post

Also prepared a bzipped tarball of qemu, xboxhd2 , hdtool , hdparm, hdsecinfo, lockhd and unlockhd. Mix with initrd.gz and vml to execute in a non-SLAX linux distribution.  
Testing is needed.


Made some progress:
1. Switched from SLAX to TinyCore. Why? To shrink memory requirements. Now you get a GUI with less RAM needed with compared against SLAX's Console edition of xboxhdm2.2. Qemu is readily available as a TinyCore extension.
2. Created a ltools.tce TinyCore extension which is the equivalent of SLAX's ltools.lzm. The SG_IO based hdtool goes into this along with minor changes to xboxhd2. Single download here.
3. scullc's USB booting changes in xboxhdm2.2 incorporated in hdm3.zip.
4. Fixed a bug in xboxdumper and updated initrd.gz. The partition offsets and sizes for the standard partitions were wrongly calculated. To replace the copy in hdm3's hdmboot folder.
5. Replace hdmboot's vml with this copy. This enables xbpartitioner styled partition table support.

Further testing is needed.
Logged

scullc

  • Archived User
  • Full Member
  • *
  • Posts: 110
Xboxhdm3 Alpha Release Development
« Reply #1 on: May 11, 2010, 03:59:00 PM »

wanted to see what it looked like - but couldn't get it to boot.
downloaded & updated as per your instructions
(kernel panic - not syncing: Fatal exception in interrupt)
i do have x2 SATA HDD connected as well the IDE.
will revisit.
btw is it necessary to have x3 initrd in hdmboot & 2 vml's?
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #2 on: May 11, 2010, 07:13:00 PM »

QUOTE(scullc @ May 12 2010, 05:59 AM) View Post

wanted to see what it looked like - but couldn't get it to boot.
downloaded & updated as per your instructions
(kernel panic - not syncing: Fatal exception in interrupt)
i do have x2 SATA HDD connected as well the IDE.
will revisit.
btw is it necessary to have x3 initrd in hdmboot & 2 vml's?

 sleep.gif Something is wrong with the changes to TinyCore kernel that I made. The stock kernel originally will handle the hdd rebuilding stuff but can't do the locking - for both SATA and IDE.

Back to the drawing board  tongue.gif Worst case scenario, I'll use the CONFIG_IDE_TASK_IOCTL kernel config flag for IDE hdd and libata for SATA and see if that works out.

Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #3 on: May 12, 2010, 08:06:00 PM »

QUOTE(ldotsfan @ May 11 2010, 09:59 PM) View Post

4. Fixed a bug in xboxdumper and updated initrd.gz. The partition offsets and sizes for the standard partitions were wrongly calculated. To replace the copy in hdm3's hdmboot folder.

1. Fixed some bugs in xboxdumper - gained a better appreciation of variable sizes and their implications.
2. Was able to create a 32k cluster size FATX partition. Only had a 320Gb hdd to test so 64k cluster results are unknown.
3. The on-disk partition table was finally compliant with xbpartitioner when cross-checked against a running copy of xbpartitioner in the xbox. Frosty's EvoX BFM bios read it correctly too.
4. Files were copied to the FATX partition successfully from UnleashX.

What this means for xboxhdm3 and Xbox Linux in general is that we don't need xbpartitioner anymore if 64k cluster testing is proven to work as well. Xboxhdm3 will be a one-stop solution for xbox hdd preparation even for a bigger size hdd  biggrin.gif . xboxdumper is portable so you don't even need xboxhdm3 to prepare the hdd and format it. You'll need xboxhdm3's kernel and initrd.gz though to copy files into the FATX partitions.  tongue.gif

This also means xboxhdm3 can be a recovery tool to copy files out from large size F/G FATX partitions off a hdd from a dead xbox since the kernel recognizes 32k cluster partitions and also recognizes the xbpartitioner styled partition table on a typical large size xbox hdd.

The binaries (standard Linux executables) as well as source code have been uploaded to sourceforge.  


Logged

reddwarffan

  • Archived User
  • Newbie
  • *
  • Posts: 8
Xboxhdm3 Alpha Release Development
« Reply #4 on: May 13, 2010, 01:06:00 AM »

Xboxhmd3 sounds excellent  (IMG:style_emoticons/default/smile.gif)
I downloaded hdm3 and updated the necessary files.
TinyCore boots to the desktop (in about 15secs!!) but I don't know what to do next?
I tried the obvious like opening a terminal window - typed xboxhdm, xboxhdm2, xboxhdm3 but no luck.
I tried installing new apps but TinyCore does not see the files under tce/optional for installing.
Maybe some instructions for useage  (IMG:style_emoticons/default/wink.gif)
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #5 on: May 13, 2010, 01:48:00 AM »

Syntax did not change from xboxhdm2.1:

xboxhd2 at the terminal.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #6 on: May 13, 2010, 08:46:00 AM »

QUOTE(ldotsfan @ May 12 2010, 09:13 AM) View Post

sleep.gif Something is wrong with the changes to TinyCore kernel that I made. The stock kernel originally will handle the hdd rebuilding stuff but can't do the locking - for both SATA and IDE.

Back to the drawing board  tongue.gif Worst case scenario, I'll use the CONFIG_IDE_TASK_IOCTL kernel config flag for IDE hdd and libata for SATA and see if that works out.

This is done. Kernel fallback onto CONFIG_IDE_TASK_IOCTL.
1. Replace tcbz file in boot folder with the new copy.
2. Replace ltools.tcz in optional subfolder of tce folder with new copy.
3. Use the AppBrowser to install ltools from Local.
4. All the usual commands can be found under /usr/local/bin.

Yet to be done:
1. Integrate xboxdumper into xboxhd2 menu in Stage 1.
2. Clean up xboxhd (inside Stage 2 - qemu) to reflect the presence of xboxdumper in Stage 1.
3. Enable xboxhd menu to see F and G partitions. You can already use the prompt to copy files via cp and mv commands inside Stage 2 - qemu.
Logged

reddwarffan

  • Archived User
  • Newbie
  • *
  • Posts: 8
Xboxhdm3 Alpha Release Development
« Reply #7 on: May 13, 2010, 02:36:00 PM »

I tried xboxhd2 in the terminal window initially but I forgot to include it in my post - it also didn't work (at the time).  I managed to get xboxhdm3 going though but testing did not go according to plan...

I worked out that TinyCore only mounts sda1 at boot up, which is my primary sata hd; my sata backup partition is sdb1 and my bootable usb stick is sdc1.  My xbox hdd is secondary master but there is no mount point for my xbox hdd.  So, I manually mounted sdc1 (using mount tool in control panel) to allow me to gain access to the tce/optional folder via AppsBrowser.  I then right-clicked, choose AppsBrowser, chose 'Local' and changed the path from sda1 to sdc1 to allow me to read the tce/optional folder.  I then installed each of the utilities in this folder.  I then opened a new terminal window and typed xboxhd2 and I was greeted with the familiar xboxhdm screen :-)

However, testing did not go too well as I was unable to unlock a stock xbox drive as no device was detected on hdc - conversely I was unable to lock an unlocked drive on the same path.  For me, it seem that TinyCore doesn't detect fatx drives at all?  I am using latest files as written up in post (#7).

I have no problems locking and unlocking using xboxhdm2.1.



This post has been edited by reddwarffan: May 13 2010, 10:26 PM
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #8 on: February 03, 2020, 09:10:00 PM »

At the terminal , do a dmesg > bootlog.txt and save the boot log file to your usb stick. Post the contents in pastebin and the URL here. I may have missed out the IDE driver for your PC's motherboard IDE Controller when compiling the kernel.

Logged

reddwarffan

  • Archived User
  • Newbie
  • *
  • Posts: 8
Xboxhdm3 Alpha Release Development
« Reply #9 on: February 04, 2020, 03:36:00 AM »

QUOTE(ldotsfan @ May 15 2010, 05:10 AM) *

At the terminal , do a dmesg > bootlog.txt and save the boot log file to your usb stick. Post the contents in pastebin and the URL here.


Took me a while to figure out how to copy and paste in TinyCore (right-click to highlight then middle mouse button to paste).  Maybe I took a shortcut for a longcut but I used Beaver to save the file?

As requested.  My output bootlog.txt file is available at pastebin here
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #10 on: May 15, 2010, 09:03:00 AM »

QUOTE(reddwarffan @ May 15 2010, 06:36 PM) View Post

Took me a while to figure out how to copy and paste in TinyCore (right-click to highlight then middle mouse button to paste).  Maybe I took a shortcut for a longcut but I used Beaver to save the file?

As requested.  My output bootlog.txt file is available at pastebin here

The xbox hdd is a stock Seagate 10Gb hdd that is locked?

CODE

#
scsi 1:0:0:0: Direct-Access     ATA      ST310211A        6.55 PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 19541088 512-byte hardware sectors: (10.0 GB/9.31 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: [sdb] 19541088 512-byte hardware sectors: (10.0 GB/9.31 GiB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb:<3>ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata2.00: BMDMA stat 0x25
ata2.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in
         res 51/04:08:00:00:00/00:00:00:00:00/e0 Emask 0x1 (device error)
ata2.00: status: { DRDY ERR }
ata2.00: error: { ABRT }
ata2.00: configured for UDMA/100
ata2: EH complete
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0

You'll need to install an editor (ie LeafPad) with AppBrowser to edit /usr/local/bin/xboxhd2 to replace hdb with sdb. You may need to copy the file to /tmp to edit and run it from /tmp, ie /tmp/xboxhd2. Or execute sudo leafpad.

I'm curious though why hdb became sdb and whether hdd unlocking will work in this situation.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #11 on: May 16, 2010, 07:32:00 PM »

QUOTE(reddwarffan @ May 16 2010, 04:51 PM) View Post

1) I consciously save every session to my usb stick but when I reboot TinyCore does not restore my previous session so I have to reinstall Beaver and all its dependicies every session

2) Can the apps in tce folder not be installed automatcially at bootup

3) Can TinyCore not automatcially mount connected drives.

1. sudo xboxhd2 in tmp folder to get rid of Permission denied" problems.
2. Need to modify the bootloader (menu.lst) to add the tce= option. http://www.tinycorel....html#pendrives
3. Use Control Panels' Apps Audit onboot to enable that.
4. One of the boot codes probably will disable auto-mounting. But I haven't figured it out yet  tongue.gif http://www.tinycorel....html#bootcodes
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #12 on: May 17, 2010, 07:26:00 AM »

QUOTE(reddwarffan @ May 17 2010, 02:56 PM) View Post

Just to clarify, are you looking into the error I reported in post #12  smile.gif

I re-read your post. Besides the permission errors, did I miss anything?
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #13 on: May 18, 2010, 06:44:00 AM »

QUOTE(reddwarffan @ May 18 2010, 05:05 AM) View Post

I may be getting confused. huh.gif
Are we talking about the same 'permission denied', i.e...

 tongue.gif Finally I see your point - sorry for missing it the first time. Yes, there are 2 distinct permission problems. I'm not concerned with the /usr/local/bin permission issues as that's the design of TinyCore, the extensions are mounted via a loop device. I'll get to modifying ltools.tcz once you confirm sudo xboxhd2 solves the other permission issue,ie HDIO_DRIVE_CMD(identify). Executing from /tmp is a temporary workaround for the usr/local/bin problem.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
Xboxhdm3 Alpha Release Development
« Reply #14 on: May 19, 2010, 08:44:00 PM »

Thanks for your perseverance so far.

For the record, the commands were
CODE

sudo cp /usr/local/bin/xboxhd2 /tmp
beaver /tmp/xboxhd2
sudo /tmp/xboxhd2


I meant only to copy xboxhd2 to the root of /tmp and not anywhere else but my earlier instructions weren't clear enough.

Anyway I'm happy to report that the updated ltools.tcz is available for download which includes the necessary sudo commands. This adds all the possible combination of /dev/sdX I can think of and also a menu option to format F/G partitions. The new command is xboxhd3 to be typed at the terminal.

Please try it out , thanks.
Logged
Pages: [1] 2