chimp261811

Discussion about Modding the XBOX, including hardware and software hacks.
Post Reply
ldotsfan
Posts: 49
Joined: Sun Jul 08, 2012 1:47 pm
Has thanked: 1 time
Been thanked: 24 times

chimp261811

Post by ldotsfan »

chimp261811 is coming. Here's the planned feature list:

1. Uses bennydiamond/psyko_chewbacca 's XBlast OS as the launcher instead of Gentoox Loader.
2. Added 3rd party controller support from Xblast OS - in theory. I can't test this though.
3. Updated busybox to a more recent version.
4. Extended F/G partition formatting should work now thanks to bennydiamond's code which reads the drive size directly.
5. Increased buffer size to 1024k should speed up the cloning process. Pipeviewer also updated.
6. The no progress cloning should now show a status update every 30 seconds. Nobody wants to stare at a screen with no update for hours.
7. The split of F and G partitions can be determined by percentage.
Ldotsfan :)
psyko_chewbacca
Posts: 213
Joined: Fri Oct 05, 2012 5:19 pm
Location: Québec, Canada
Has thanked: 21 times
Been thanked: 125 times

Re: chimp261811

Post by psyko_chewbacca »

XBlast OS have the same controller support as Gentoox Loader. I did not work on supporting 3rd party controllers yet.
fxmech
Posts: 673
Joined: Wed Aug 01, 2012 9:15 am
Has thanked: 37 times
Been thanked: 46 times

Re: chimp261811

Post by fxmech »

I can test, I have a box with many random controllers.

And a chip with many banks. Just waiting on the box to put it in. :)
ldotsfan
Posts: 49
Joined: Sun Jul 08, 2012 1:47 pm
Has thanked: 1 time
Been thanked: 24 times

Re: chimp261811

Post by ldotsfan »

Ldotsfan :)
psyko_chewbacca
Posts: 213
Joined: Fri Oct 05, 2012 5:19 pm
Location: Québec, Canada
Has thanked: 21 times
Been thanked: 125 times

Re: chimp261811

Post by psyko_chewbacca »

ldotsfan wrote:psyko_chewbacca: https://gist.github.com/anonymous/7e6233bc7b42d367761f in /drivers/usb/sys/xpad.c
Cool, how did you find those? I also found new IDs in X-Changer 2.5 source code.
Will add them when I have the time.
Does anyone knows what are the vendor/device ID codes for the Shockwave Wireless controllers(made by Komodo) that are still sold on the Internet?
Image
ldotsfan
Posts: 49
Joined: Sun Jul 08, 2012 1:47 pm
Has thanked: 1 time
Been thanked: 24 times

Re: chimp261811

Post by ldotsfan »

Ldotsfan :)
User avatar
Rocky5
Posts: 974
Joined: Sat Feb 08, 2014 5:27 am
Has thanked: 101 times
Been thanked: 257 times

Re: chimp261811

Post by Rocky5 »

I know this is an old thread, but how do I update the initrd?
(also was locking of the master hdd left out deliberately?)

I have fixed up the menu & want to apply it permanently.
(currently I have been FTPing in & refreshing the menu with my changes.

Image

Code: Select all

#!/bin/sh


network_settings_menu() {
	local IP=`ifconfig eth0 | grep 'inet addr' | cut -d ':' -f 2 | cut -d ' ' -f 1`
	if dialog --defaultno --yesno "Current IP Address: $IP\nDo you wish to reconfigure?" 0 0; then
			/usr/bin/netcardconfig
			network_settings_menu
	fi
}

choose_key() {
local choice=1
dialog --nocancel --title "Xbox HD locking tools" --menu "Where is the key source " 25 75 5 \
	1 "From Motherboard" \
	2 "From /tmp/eeprom.bin" \
	3 "From Master password:XBOXSCENE" \
	4 "From Master password:TEAMASSEMBLY" \
	5 "From /tmp/hddkey.txt" \
	6 "Exit to main menu" \
2> /tmp/choice.$$
choice=`cat /tmp/choice.$$`
case $choice in
	1)	key_src="" ;;
	2)	key_src=/tmp/eeprom.bin ;;
	3)	key_src=XBOXSCENE ;;
	4)	key_src=TEAMASSEMBLY ;;
	5)	key_src=/tmp/hddkey.txt ;;
	6)	main_menu; ;;
esac
rm /tmp/choice.$$
return 
}


choose_slave() {
local choice=1
dialog --nocancel --title "Slave drive options" --menu "Choose option" 0 0 0 \
	1 "Lock slave drive" \
	2 "Unlock slave drive" \
	3 "Display slave drive security status" \
	4 "Exit to main menu" \
2> /tmp/choice.$$
choice=`cat /tmp/choice.$$`
case $choice in
	1)	choose_key ;
		clear ;
		/usr/bin/lockhdb lock "$key_src" ;;
	2)	choose_key ;
		clear ;
		/usr/bin/lockhdb unlock "$key_src" ;
		/usr/bin/lockhdb disable-pw "$key_src" ;;
	3)	dialog --msgbox "`/usr/bin/hdsecinfo /dev/hdb`" 0 0 ;
		choose_slave;;
	4)	main_menu; ;;
esac
rm /tmp/choice.$$
return 
}


choose_master() {
local choice=1
dialog --nocancel --title "Master drive options" --menu "Choose option" 0 0 0 \
	1 "Lock master drive" \
	2 "Unlock master drive" \
	3 "Display master drive security status" \
	4 "Format extended partitions" \
	5 "Exit to main menu" \
2> /tmp/choice.$$
choice=`cat /tmp/choice.$$`
case $choice in
	1)	choose_key ;
		clear ;
		/usr/bin/lockhda lock "$key_src" ;;
	2)	choose_key ;
		clear ;
		/usr/bin/lockhda unlock "$key_src" ;
		/usr/bin/lockhda disable-pw "$key_src" ;;
	3)	dialog --msgbox "`/usr/bin/hdsecinfo /dev/hda`" 0 0 ;
		choose_master;;
	4)	/usr/bin/lpartitioner;
		choose_master;;
	4)	main_menu; ;;
esac
rm /tmp/choice.$$
return 
}


choose_settings() {
local choice=1
dialog --nocancel --title "Other options" --menu "Choose option" 0 0 0 \
	1 "Network Settings" \
	2 "Backup eeprom" \
	3 "Reboot" \
	4 "Shutdown" \
	5 "Start, Linux shell" \
	6 "Exit to main menu" \
2> /tmp/choice.$$
choice=`cat /tmp/choice.$$`
case $choice in
	1)	network_settings_menu
		choose_settings;;
	2)	/usr/sbin/xbox-info -r /tmp/eeprom.bin
		dialog --msgbox "Eeprom backup saved to /tmp/eeprom.bin" 8 45 ;
		main_menu;;
	3)	clear
		/sbin/reboot; ;;
	4)	clear
		/sbin/poweroff; ;; 
	5)	dialog --inputbox "A USB keyboard is required to enter commands. Type \"ok\" to continue" 0 0 2> "$TMP"
		if [ "$?" = 0 -a "`cat "$TMP"|tr '[A-Z]' '[a-z]'`" = ok ] ; then
		clear
		echo "Type exit to return to the menu"
		/bin/sh -i
		fi
		main_menu; ;;
	6)	main_menu; ;;
esac
rm /tmp/choice.$$
return 
}


main_menu() {
TMP=/tmp/xbox-menu.tmp$$
dialog --nocancel --title "ldotsfan hdd tools - menu by Rocky5" --menu "Choose option" 0 0 0 \
	1 "Scan physical IDE devices" \
	2 "Clone from master to slave" \
	3 "Slave drive options" \
	4 "Master drive options" \
	5 "Other options" \
2> /tmp/choice.$$
choice=`cat /tmp/choice.$$`
case $choice in
	1)	/usr/bin/scanide; 
		main_menu; ;;
	2)	/usr/bin/cloneab; 
		main_menu; ;;
	3)	choose_slave ;
		main_menu;;
	4)	choose_master ;
		main_menu;;
	5)	choose_settings
		main_menu;;
	*) ;;
esac
}
main_menu
rm -f /tmp/choice.$$
Download Xbox Softmodding Tool & Extras Disc
XBMC4Kids Mod


Xbox Gamertag = Connxtion
PSN ID = JCRocky5
User avatar
professor_jonny
Posts: 1296
Joined: Thu Jul 05, 2012 5:41 am
Location: New Zealand
Has thanked: 66 times
Been thanked: 196 times

Re: chimp261811

Post by professor_jonny »

to update the initial ram disk you need to mount the image file easy to do under Linux.

problem you may have is the file is often shrunk down so it has no space left in it and you need

you can create a file of the correct size then mount and format it is the easy way I found of doing it.

just remember to set the execute bit on the script or it wont run after replacing the file in the image.

in a pc you can mount it also using file to disk then use an ext file system mounting tool or a pc emulator with a Linux distro.

back in the day I made a initram disk image based off chimp that loaded the script file off the fatx disk so you could freely edit it with out forever editing the initial ram disk image files etc.. there is a post on the forum somewhere with what I did and how to bypass the execute bit as you cant set it on a fatx formatted drive.
User avatar
Rocky5
Posts: 974
Joined: Sat Feb 08, 2014 5:27 am
Has thanked: 101 times
Been thanked: 257 times

Re: chimp261811

Post by Rocky5 »

Cheers, I found some software to open the ext2 initrd with read/write enabled, problem was no way to set the permissions :cry:

So trying Ubuntu, when done will upload the new initrd.gz to here.

Update:
Success!

.sh script to do the job.

Code: Select all

#!/bin/sh
cd /root/Desktop/
mkdir temp
umount temp
mount -t ext2 -o loop initrd temp/
read -p "Press enter to finish" nothing
chmod 755 temp/usr/bin/chimp
umount temp
rmdir temp
Last edited by Rocky5 on Thu Apr 07, 2016 2:46 am, edited 1 time in total.
Download Xbox Softmodding Tool & Extras Disc
XBMC4Kids Mod


Xbox Gamertag = Connxtion
PSN ID = JCRocky5
User avatar
Rocky5
Posts: 974
Joined: Sat Feb 08, 2014 5:27 am
Has thanked: 101 times
Been thanked: 257 times

Re: chimp261811

Post by Rocky5 »

Any one wanting the new version here you go, Download Chimp 261812

Source files & pre setup version are included.

Change log:
Chimp 261811 Changes

1. Redone the menus.
2. Added lock master HDD.
(not sure why its not there by default)
3. Added format extra partitions for slave drive.
4. Changed buffer size back to 512kb, as anything above this value will result in error 13.
5. Removed -d from hdtool in lockhda & lockhdb as hdtool doesn't use -d. (hdtool2 does)
6. Fixed the Pipe Viewer (Progress bar you see when cloning a HDD) fits the screen better.
7. Also padded the top of the screen for the above & the no progress variant.
(was required to compensate for overscan)
8. Changed the menu system in lpartitionerhda & lpartitionerhdb, stops the error about line 106.
9. Changed how the IDE information is gathered.
(its a lot cleaner looking)
10. Moved the formating of the slave hd untill after the user chooses the options.
(saves on time for me testing things & means the user can exit before formating the slave drive)
11. Removed the bloody flashing cursor!
12. option to lock the slave hd after the cloning procedure is complete.
13. Changed the shell background colour for Linux shell & for all other instances.
14. Fixed the scanpartitions shell script, now mounts the drives and added a umount version.
(note this isnt used, but I just fixed it anyways.)
15. Added support for E:\eeprom.bin on the xbox fatx partition.
(ie, before you launch chimp & its case sensitive.)
16. Advanced settings, for the Master HD.
(Enable in settings)
17. Probably more changes, but lost track. :/
Download Xbox Softmodding Tool & Extras Disc
XBMC4Kids Mod


Xbox Gamertag = Connxtion
PSN ID = JCRocky5
User avatar
professor_jonny
Posts: 1296
Joined: Thu Jul 05, 2012 5:41 am
Location: New Zealand
Has thanked: 66 times
Been thanked: 196 times

Re: chimp261811

Post by professor_jonny »

Would be an idea to build the new user space driver by ldotsfan for full f/g read support and include it in this.

http://www.xbmc4xbox.org.uk/forum/viewt ... =13&t=4897
User avatar
Rocky5
Posts: 974
Joined: Sat Feb 08, 2014 5:27 am
Has thanked: 101 times
Been thanked: 257 times

Re: chimp261811

Post by Rocky5 »

professor_jonny wrote:Would be an idea to build the new user space driver by ldotsfan for full f/g read support and include it in this.

http://www.xbmc4xbox.org.uk/forum/viewt ... =13&t=4897
There is already read & write support for fatx in Linux (chimp) the issue is there is no way to mount the hdb as a file system. (The former requires a patch to the Linux distro) So there isn't much point or need for it currently.

If I got hdb mounted, I could just use cp to clone the hd & that would have fixed a lot of the current limitations we have, with losing space on predefined extra partitions.

I fixed the partition mount scripts in chimp261812 so you can run them from the shell interface & it will mount all partitions for you.
Download Xbox Softmodding Tool & Extras Disc
XBMC4Kids Mod


Xbox Gamertag = Connxtion
PSN ID = JCRocky5
Post Reply