xboxscene.org forums

Pages: 1 2 3 [4] 5 6 ... 12

Author Topic: XboxHDM2 (USB Edition) - Alpha Release  (Read 1341 times)

Jeroi

  • Archived User
  • Newbie
  • *
  • Posts: 5
XboxHDM2 (USB Edition) - Alpha Release
« Reply #45 on: March 24, 2009, 07:52:00 PM »

Oh no, xboxhdm2 does not support kingroach Ndure3.1.

I made from xboxhdm1.9 so that I included Ndure3.1 installation files. Then made out of that linux.iso.

I then made usb bootable hdm2 and replaced the 10mb linux.iso with my ndure linux.iso.

The problem is that there is no xbrowser command, and I cannot find my cd anywhere.

Also in my system I have only 1 ide port and 6 sata ports. Sataports are default hda hdb etc..

my xbox hd on primary ide is sdb or similar. the xboxhd2 command works only 4 default linux names. I need xboxhdm2 to see available hard disks, where I can chose hard disk out of. Also I would need that virtual cd browser to be able to locate ndure script and mod my xbox.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #46 on: March 25, 2009, 08:33:00 AM »

QUOTE(Jeroi @ Mar 25 2009, 10:28 AM) View Post

Oh no, xboxhdm2 does not support kingroach Ndure3.1.


Kingroach Ndure C folder to C folder of iso, E folder likewise. The script just copies files. Or if you have msdash ver 5960 files, you can copy those to C and E folder inside the iso followed by the Kingroach Ndure files, overriding them if necessary.

I never finished xboxhdm2. You can try using qemu or vmware (see my sig under usb/ide) to overcome the SATA limitations of the original xboxhdm.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #47 on: May 01, 2009, 11:17:00 PM »

QUOTE(Usuario-X @ Aug 25 2008, 10:19 PM) View Post

Man maybe this can help us

http://xbox-linux.cv...tool.c?view=log


Revisiting an old problem, the lack of locking in xboxhdm2. I think hdtool is a dead end so I started looking at the source of hdparm 9.15 instead. Seems that this version doesn't check for ASCII strings

CODE

static void get_security_password (int handle_NULL)
{
    unsigned int maxlen = sizeof(security_password) - 1;

    if (argc < 2) {
        fprintf(stderr, "missing PASSWD\n");
        exit(EINVAL);
    }
    argp = *argv++, --argc;
    if (!argp) {
        fprintf(stderr, "missing PASSWD\n");
        exit(EINVAL);
    }
    if (strlen(argp) > maxlen) {
        fprintf(stderr, "PASSWD too long (must be %d chars max)\n", maxlen);
        exit(EINVAL);
    }
    memset(security_password, 0, maxlen + 1);
    if (!handle_NULL || strcmp(argp, "NULL"))
        strcpy(security_password, argp);
    printf("security_password=\"%s\"\n", security_password);
    while (*argp)
        ++argp;
}


So if we could take the hex conversion code from hdtool:
CODE

  188         for (i=0; i  189             char ch[2];
  190             ch[0] = password[2*i];
  191             ch[1] = password[2*i+1];
  192
  193
  194             if ( !((ch[0]>='0' && ch[0]<='9') || (ch[0]>='a' && ch[0]<='f') || (ch[0]>='A' && ch[0]<='F')) ||
  195             (!((ch[1]>='0' && ch[1]<='9') || (ch[1]>='a' && ch[1]<='f') || (ch[1]>='A' && ch[1]<='F')))) {
  196                 printf("Error - invalid character in password - must be ");
  197                 printf("between 0-9, and a-f\n");
  198                 exit(0);
  199             }
  200             ide_password = strtoul(ch,0l,16);
  201         }


there is some basis for a working hd lock in linux kernel 2.6 via hdparm. Of course, my C language proficiency isn't up to par so I'll need help. Now I need to find a modern linux distribution with a toolchain which will support hdparm compiling.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #48 on: May 02, 2009, 11:48:00 PM »

QUOTE(ldotsfan @ May 2 2009, 12:09 PM) View Post

I think hdtool is a dead end so I started looking at the source of hdparm 9.15 instead.

Found that SLAX kernel lacks the CONFIG_IDE_TASK_IOCTL switch but Knoppix does have this set. hdtool might still work.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #49 on: May 03, 2009, 04:42:00 AM »

QUOTE(ldotsfan @ May 3 2009, 12:40 PM) View Post

Found that SLAX kernel lacks the CONFIG_IDE_TASK_IOCTL switch but Knoppix does have this set. hdtool might still work.

CONFIG_IDE_TASK_IOCTL is the key, was able to lock the hdd in Knoppix 6.1 with the hdtool2 binary

Now a matter of moving the kernel into SLAX or alternatively remaster Knoppix with the necessary xboxhdm2 files. Finally locking with xboxhdm2 is near reality.
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #50 on: May 03, 2009, 08:13:00 AM »

QUOTE(ldotsfan @ May 3 2009, 05:34 PM) View Post

Now a matter of moving the kernel into SLAX

Uploaded the kernel compiled with CONFIG_IDE_TASK_IOCTL set to sourceforge. Now to figure out how to get SLAX to boot the kernel..

Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #51 on: May 04, 2009, 08:54:00 AM »

QUOTE(scullc @ May 4 2009, 01:11 AM) View Post

you are doing great work with this ldotsfan
i am watching this with keen interest.
i will offer testing support if necessary

Thanks for the interest and it's done - the hdd locking smile.gif

I'm uploading the new version which is based on SLAX 6.1.1 as I type - takes a while as my ISP caps the upload bandwidth. Unzip the file contents to your usb flash drive and you should have the slax folder, boot folder and eeprom folder at the root of the flash drive. Grab a copy of xboxhdm1.9 (the original version by ldots) , create the linux.iso as per the original instructions and place the linux.iso at the root of the flash drive. Start a command prompt in Windows to run bootinst.bat from the boot folder to make the flash drive bootable (as per the the first post in the thread).

The command to use should be xboxhd2 in step 5 and 7 of the original post. After choosing the partition to activate, choose boot option 2 (from the original xboxhdm1.9)

I welcome feedback on the tool from your testing.

By the way, it is possible to use make_iso.bat in slax folder to create an ISO version of the tool. For those who have a SATA DVD drive.
Logged

GoTeamScotch

  • Recovered User
  • Sr. Member
  • *
  • Posts: 311
XboxHDM2 (USB Edition) - Alpha Release
« Reply #52 on: May 04, 2009, 10:03:00 PM »

Looks to be a very useful tool.   biggrin.gif
your efforts are greatly appreciated

I'll be trying this out on my next XBOX hdd format (soon)
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #53 on: May 05, 2009, 07:11:00 AM »

QUOTE(scullc @ May 5 2009, 05:59 PM) View Post

**first a little warning. I could not get the flash drive bootable from within Vista….the bootinst.bat executed perfectly within XP.

Here’s how I did it:

1. I put the HDD (as master) on the IDE slot. I disconnected any SATA HDD.
2. Booted USB Slax.
3. Noted how my USB drive  was mounted in Slax (sdb1)
4. Typed xboxhd2 into the console
5. Selected No 5 (lock HDD..) – it failed to find the right path.
6. I selected No 1 (type path manually) which was /mnt/sdb1/eeprom
7. The HDM locking screen appeared  wink.gif
8. Locked as per screen instructions

Thanks scullc for the very detailed instructions and testing procedure - it's good to know somebody else had success as well with the tool.  biggrin.gif

The path for the eeprom is a bit surprising - it might be:
/mnt/sdb/eeprom
/mnt/sdb1/eeprom
/mnt/sda1/eeprom
/mnt/sda/eeprom
etc, I wonder why  dry.gif
I need to think about how to automatically figure it out in the script so to ease it for first-timers or non-linux users.

I'll see if I can do anything about the Vista booting of usb. In the meantime, are there any guinea pigs for end to end testing - from hdd rebuilding to locking?
Logged

scullc

  • Archived User
  • Full Member
  • *
  • Posts: 110
XboxHDM2 (USB Edition) - Alpha Release
« Reply #54 on: May 05, 2009, 12:49:00 PM »

The end to end testing has been done and it all works…with just a little persuasion.

Here’s how I did it – I’ll assume you know how to boot Slax, note your USB mount point & run xboxhd2 in the console.

Selected No 1(work on primary master – that being hda)
Followed the on-screen instructions

Then it got stuck when I was asked:
Are you sure to use Primary Master [yes/no]? : I typed yes.
This was the response:

Warning: No DNS servers found
qemu: could not open disk image /mnt/sda/linux.iso


I assumed it cannot ‘see’ the mounted image at sdb1 (the installer keeps looking for it at sda). I therefore entered this (slightly adjusted) code from page 2 of your thread into the console to match my mounted USB drive & HDD mount points:

/usr/local/bin/qemu -hda /dev/hda -cdrom /mnt/sdb1/linux.iso -boot d

…which worked straightaway (!!) and booted the familiar HDM console. I then rebuilt the stock HDD from scratch quickly & painlessly. I then exited HDM and retyped xboxhd2 to gain access to the locking console (see my previous post for instructions). After locking & booting my XBMC dashboard was gone and the familiar MSDash appeared which confirmed it has been rebuilt & locked successfully.  

Hope that helps  wink.gif
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #55 on: May 05, 2009, 06:21:00 PM »

Thanks, once again , your detailed instructions are very helpful. I guess the tool is working - it just needs a fix to the pathname problems to be more newbie-friendly. I'll get to it once I find the time.

Good to know finally we have an alternative to good old xboxhdm. Anybody else wants to volunteer to test it please?
Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #56 on: May 06, 2009, 05:06:00 AM »

I think I fixed the path problems, get ltools21.lzm from sourceforge, delete away ltools.lzm in modules subfolder of slax folder on usb drive and replace with this file.

Before executing xboxhd2, use kmenu (bottom left most icon in slax desktop). Navigate to system option, information center, and select partitions. Use the partition size as a guide to take note of the path to your usb flash drive, for example:
/mnt/sda1 or
/mnt/sdb1 or
/mnt/sdc1 or
/mnt/sda or
/mnt/sdb etc

When you execute xboxhd2, you will be prompted to enter this value, for example /mnt/sda1

If this is working, xboxhdm2 will be complete.
Logged

Bomb Bloke

  • Archived User
  • Hero Member
  • *
  • Posts: 2398
XboxHDM2 (USB Edition) - Alpha Release
« Reply #57 on: May 06, 2009, 07:32:00 AM »

I fear I'm somewhat useless as far as testing goes (I'm away from home for the next few days), but lemme say congratulations anyway.  smile.gif

So if I'm understanding this at all (and I'm suspecting I'm not), could this perchance be used to temporarily open the lock on a drive and play with the contents, without rebooting (and hence closing the lock on the drive again)? Something the original XBoxHDM can't do?
Logged

scullc

  • Archived User
  • Full Member
  • *
  • Posts: 110
XboxHDM2 (USB Edition) - Alpha Release
« Reply #58 on: May 07, 2009, 04:35:00 AM »

the updated ltools21.lzm module works!
well done (again) ldotsfan
I just had to remember to type the full mount point in i.e: /mnt/sdb1
piece of cake after that (rebuilt & locked with no problems)

you are still however required to input the full path for locking i.e: /mnt/sdb1/eeprom

btw - alternative way i used to see mount point:
double click system icon (on desktop)
double click storage media
I then hovered over my USB stick (slaxxbox) and it showed mount point (sdb1) in attributes.

Logged

ldotsfan

  • Archived User
  • Hero Member
  • *
  • Posts: 2072
XboxHDM2 (USB Edition) - Alpha Release
« Reply #59 on: May 07, 2009, 09:57:00 AM »

QUOTE(Bomb Bloke @ May 6 2009, 08:24 PM) View Post

I fear I'm somewhat useless as far as testing goes (I'm away from home for the next few days), but lemme say congratulations anyway.  smile.gif

So if I'm understanding this at all (and I'm suspecting I'm not), could this perchance be used to temporarily open the lock on a drive and play with the contents, without rebooting (and hence closing the lock on the drive again)? Something the original XBoxHDM can't do?

Thanks.
The honest answer to your question is I don't know - but the command to use would be hdtool -e /mnt/sda/eeprom/eeprom.bin -o UNLOCK -d /dev/hda followed by xboxhd2. May I know what scenario do you have in mind for doing this?

QUOTE(scullc @ May 7 2009, 01:11 AM) View Post

small query ldotsfan - is their any value in an unlocker (like original HDM) or even is that possible?

Sorry I didn't get the question. Could you rephrase it for me?

QUOTE(scullc @ May 7 2009, 05:27 PM) View Post

the updated ltools21.lzm module works!
well done (again) ldotsfan
I just had to remember to type the full mount point in i.e: /mnt/sdb1
piece of cake after that (rebuilt & locked with no problems)

you are still however required to input the full path for locking i.e: /mnt/sdb1/eeprom

btw - alternative way i used to see mount point:
double click system icon (on desktop)
double click storage media
I then hovered over my USB stick (slaxxbox) and it showed mount point (sdb1) in attributes.

 beerchug.gif
Thanks again for the detailed testing and for the tip on the alternative way to view the path. smile.gif
Logged
Pages: 1 2 3 [4] 5 6 ... 12