xboxscene.org forums

Author Topic: XBR-Flash for Linux v0.3 beta *Update v0.3.1*  (Read 86 times)

Xbox-Scene

  • Archived User
  • Hero Member
  • *
  • Posts: 4299
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« on: January 13, 2010, 12:40:00 PM »

XBR-Flash for Linux v0.3 beta *Update v0.3.1*
Posted by XanTium | January 13 14:40 EST | News Category: Xbox360
 
Trancy released a new version of XBR-Flash. With LFlash it was already possible to update your XBReboot on NAND-16mb consoles directly from your Xbox 360 booted into a Linux Distro like Gentoo (so no need to flash over LPT or USB again). Based on LFlash, XBR-Flash however will now allow you to flash on 256/512mb consoles as well and comes with more additional features.
Quote

WARNING: Do not flash your NAND directly from the USB Drive, because the Linux USB driver has a bug and freeze after a while. Copy all needed Data from USB Drive to Desktop and flash from there!
USE THIS SOFTWARE AT OWN RISK.

What's new/fixed (v0.3 and v0.3.1):
* 2nd Hotfix for KV and Config Injection
* Added erase MU partition
* Added new command line interface
* Added full (256/512MB) read and write Nand support
* Small Bugs fixed
* Verify fix (v0.3.1)
* ...

Usage:  ./a.out -d dump.bin -w xbr.bin -i [-I kv.bin config.bin] -ep -f
-d dump.bin        Nand Dump file
-w xbr.bin         XBReboot image file
-i                 Inject KV and Config from Nand Dump to XBReboot image file (see Notes)
-ep                Erase Memory Unit Partition (only for 256/512MB or bigger Nands).
-f                 Full dump or write of Nand (e.g. Read and write 512MB on 512MB Nand).
-h                 Help: This text.

Notes:
* If you are using the -i option, the KV and Config Data MUST BE VALID in your CURRENT Nand on XBOX 360.
* Option -f and -ep not allowed.

*Update v0.3.1* Small Verify fix

Official Site: n/a, by Trancy
Download (v0.3.1): here
News-Source: xboxhacker.org



Logged

belenos

  • Archived User
  • Full Member
  • *
  • Posts: 107
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #1 on: January 13, 2010, 12:51:00 PM »

Nice. could someone put together a guide for those of use that are linux illeterate??

couldn't the Live disc Iso be edited to already have the files on it to cut out any mounting of drives and problems with the usb drivers?
Logged

Morning Call

  • Archived User
  • Full Member
  • *
  • Posts: 158
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #2 on: January 13, 2010, 01:04:00 PM »

the script is still not perfect. config injection isn't working properly yet. so use at own risk.

the script does however have absolutely no issues reading and writing prepatched bins.

do not use the -i flag yet. only -d/-w. unless you want to be a tester as well (IMG:style_emoticons/default/smile.gif)



This post has been edited by Morning Call: Jan 13 2010, 09:09 PM
Logged

belenos

  • Archived User
  • Full Member
  • *
  • Posts: 107
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #3 on: January 13, 2010, 01:30:00 PM »

ok say some one has a jtagged box that they had someone else do can you run this with just the -d command to get the current nand take that to your pc use nandpro to pull kv and config, inject to XBR_3 and use this again to write it.

basically a work around for people that didn't Jtag their own box and modder didn't send KV/config??
Logged

XBoxgeek

  • Archived User
  • Full Member
  • *
  • Posts: 168
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #4 on: January 13, 2010, 02:11:00 PM »

Yes that would work fine.
Logged

belenos

  • Archived User
  • Full Member
  • *
  • Posts: 107
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #5 on: January 13, 2010, 02:27:00 PM »

ok so does this look right?:

01. Put Gentoo Live V2 disc in your 360 and bootup Xell/Gentoo

02. In gentoo, open up the terminal (Applications->Accessories->Terminal )

03. Type sudo passwd this will prompt you to enter a new password and verify it (the characteres of the password will not be displayed)
This will give you admin powers

04. Now we can mount the USB drive
Plug the USB in (rear USB port if you have used the front for mouse/keyboard
In the terminal type: su it will ask for your password, the one the just entered
Type cd Desktop/ to change dir to Desktop
Type mkdir flash to create a folder on the desktop
Type dmesg | grep -i "SCSI device" (the quotes around SCSI Device should be kept)
This will display a few lines similar to:
SCSI Device sda: ... (4GB)
The important part here is the part after Device (sda, could also be sdb, sdc etc)
Type pwd this will show you the path to the desktop
Finally type mount -t vfat -o uid=gentoo,gid=users /dev/sda1 /home/gentoo/Desktop/flash
Keep in mind to change the sda to the value you had (rear port should be sda) and the last part to what the "pwd" command showed + /flash

05. You should have a folder on the desktop named flash and inside you should see the xbr.bin (or whatever you called it) and XBRFLASH.c

06. In the terminal, type cd flash to change dir to the USB drive

07. type gcc XBRFLASH.c this will compile the script and create an a.out file on the USB drive

08. type chmod +x a.out this will make it executable

09. type ./a.out -d nandback.bin -w XBR.bin this will create a file called nandback.bin and flash xbr.bin to the NAND (change xbr.bin to the name of your file)-If you only want a backup of current nand only do -d nandback.bin

10. NAND should be flashed so turn the 360 off and boot up, and hope you get launched into a kernel

This post has been edited by belenos: Jan 13 2010, 10:33 PM
Logged

miller420

  • Archived User
  • Newbie
  • *
  • Posts: 31
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #6 on: January 14, 2010, 03:33:00 PM »

@belenos

Don't forget to power cycle, take out the cord for at least 10 seconds. I was just testing it out and when I flashed I rebooted and got e79 OHH NOOOz lol. then i remembered to power cycle.
Logged

ristodesign

  • Archived User
  • Newbie
  • *
  • Posts: 13
XBR-Flash for Linux v0.3 beta *Update v0.3.1*
« Reply #7 on: January 19, 2010, 04:38:00 AM »

Thanks for the info! But they state it's much better first to copy to the desktop and I see that this method is still communicating with the USB which causes it to hang.

So, is this method really not using USB? Is there someone would could add the linux commands to make sure USB is not involved while dumping and flashing? Iexpected xbrflash to first dump/write to local flash folder and after copy it to USB. If this IS the case why does it hang this much.

My console is a, by microsoft, damaged XBOX. 2 alternating green/red because of tempering (broken seal) Not modificated... Most probably my nand is missing DVD key.

Thanks is advance, also if I'm mistaking please let me know.
Logged