Hi there I have an initial ram disk and im wondering how to add to it.

I have worked out my releace of busybox is compiled without some of the required items needed in my script such as the command stat and the image is missing some things i want to add in like xboxdrv and some dependancys like libusb.

I'm using the inital ram disk from a dsl image for a utilities disk for the xbox but the problem is I can't add packages as I dont know how to add them in as i can not compile them as it is missing a compiler and its dependancys and the typical sudo apt get install way of things.

How would I go about installing extra things into my image I'm guessing i need to make a custom image but how do i go about this as there is no command mkinitrd also in dsl?

My task is to eventually make a script to init the xbox from a custom linuxrc then read a second stage user modifiable script off a fatx partition which I have read write access to so one could modify things without tools to open up the image.

The script is designed flash multiple flash bios files to the xbox selectable via emulated keyboard presses using the xbox gampad/joystick driver it will dump bioses from the xbox check file sizes compair and flash to ensure no bad flashes and provide a log file for the user incase something goes wrong.Eventually I will extend it futher to format partitions and write the operating system files on.

The game controller also can be customised as it will read the config file off the fatx partition and you basically have the option to do any thing you want or extend it with out opening up the initrd as the flash script and game controller config file is loaded from outside the initrd.

Here is what I have in my script's so far but it fails because of the missing things

So far it sets up the xbox special hardware and i2c drivers then mounts the fatx file system and loads the second stage script off the fatx partition.

I have tested the flash scripts sequences and logic and all work except for the game controller/keyboard driver and file size check's using the stat command.

If i could add in those two things I'd be happy.

linuxrc script in root of package

Code:

#!/bin/bash# linuxrc startup script inital script to setup flash enviroment and # handle control over to second stage#-----------------------------------------------------------------------------# (c) Copyright 2002 Edgar Hucek <hostmaster@ed-soft.at># All Rights Reserved.## http://xbox-linux.sourceforge.net## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version# 2 of the License, or (at your option) any later version.## Neither Edgar Hucek nor xbox-linux admit liability nor provide# warranty for any of this software. This material is provided# "AS-IS" and at no charge.## (c) Copyright 2002 Edgar Hucek <hostmaster@ed-soft.at>#-----------------------------------------------------------------------------# Modified by professor_jonny# Dont email me I'm too busy :-)# # #-----------------------------------------------------------------------------

#!/bin/bash# second stage flash script to do the actual flashing and log file# flash.sh setup file stored on xbox @ $XBOXMOUNTPATH#-----------------------------------------------------# ### (c) Copyright 2013 Professor_jonny # All Rights Reserved.## http://www.xbmc4xbox.org.uk## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation.## This material is provided AS-IS" and at no charge if it# makes your toaster catch fire dont blame me.## (c) Copyright 2013 #-----------------------------------------------------##

# If no key is pressed with in 10 seconds shutdown console (in a nice way)if read -n 1 -t 10 RESPONCE;then echo "Great, you made it in time!" wait 5else echo "Sorry, you are too slow in selecting an option and I will now shutdown!" wait 5 sleep 50 halt -n -f -pfi

#!/bin/bash#-----------------------------------------------------# game.cfg xboxdrv keyboard setup file stored on xbox @ $XBOXMOUNTPATH### (c) Copyright 2013 Professor_jonny # All Rights Reserved.## http://www.xbmc4xbox.org.uk## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation.## This material is provided AS-IS" and at no charge if it# makes your toaster catch fire dont blame me.## (c) Copyright 2013 #-----------------------------------------------------### A is keyboard key A# B is keyboard key B# X is keyboard key X# Y is keyboard key Y