xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Customize Your Own Mini Linux Distro!, Make it like your own!
Keo-Keo
post Mar 1 2005, 04:32 PM
Post #1


X-S Genius
****

Group: Members
Posts: 871
Joined: 16-July 04
From: Cincinnati Ohio
Member No.: 130805
Xbox Version: v1.0



Customize Your own Mini Linux Distro

Requirements:
Linux OS or
Linux Server
Basic Linux knowledge
Ltools or Anyother mini linux distro..
mkfs.cramfs (do locate mkfs.cramfs if not found look online for it)

This is just a small guide for those who would like to make a mini linux distro for building an installer of some kind or just haing something you can call your own..

Step 1: Get a prebuilt mini linux distro

For this tutorial i use ltools 1.8.. You can use any prebuilt mini linux distro such as chimps tools. After you get this the only file we'll need to edit is the initrd file..

This is where all the files are stored in mini linux..


Step 2: Extract the initrd ftp it and mount it..

Open your mini linux zip folder and look for the initrd file.. If you are using linux then place it in your /home/username folder..

If you are using a linux server like me i just placed the initrd folder in /root/

now we must make a dir to mount it to..

CODE
mkdir /mnt/initrdtest


Now lets mount the initrd folder in there

CODE
mount -o loop /root/initrd /mnt/initrdtest/
cd /mnt/initrdtest/

YAY! we now have the initrd file mounted.. BUT OH NO! It's readonly!!!

Step 3: Make a new initrd folder RW

Now that we have the mini linux initrd file mounted to /mnt/initrd how do we get RW to that folder? The anwser is we don't! We create a new folder and copy the files from old initrd into it..

Lets make a new folder

CODE
mkdir /mnt/initrd


Now lets copy the files from /mnt/initrdtest/ to /mnt/initrd

CODE
cp /mnt/initrdtest/* /mnt/initrd/ -Rf


Cool now we have own RW initrd folder.. It should look somthing like This

Step 4: edit files to your likeing add new program get rid of some old one's.. Have fun!

to edit the boot up script you'll need to open the linuxrc in a text editor.. I use Joe you can use nano or vi.. Edit to your liking..

Step 5: remake your initrd file..

I wrote a small shell script to do mine.. Here i'll make one for us!

CODE
#!/bin/sh
###################################################################
###        Simple Initrd maker ha add to make a banner          ###
###            This script is for creating initrd               ###
###               Script By Keo-Keo XS Forums                   ###
### Edit this how ever you want but don't remove this THANKS!   ###
###################################################################

echo -e "Creating initrd"
sleep 1
# if your path is diffrent to the initrd folders
# or to mkfs.cramfs then make changes to match those!
/sbin/mkfs.cramfs /mnt/initrdtest/ /mnt/initrd
echo -e "Done!"
sleep 1
exit


Copy the code and paste it in a text editor.. Then save it as /sbin/cominitrd
Then type in cominitrd and it should remake your initrd file.. Comes in handy when your testing instead of manually typin all that in!..

Your new initrd file should now be in /mnt/initrd !

Good Luck

This method should work for editing files in xboxhdm as well.

beerchug.gif

This post has been edited by friedgold: Sep 13 2005, 04:17 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
chadkeck
post Mar 1 2005, 05:15 PM
Post #2


X-S X-perience
**

Group: Members
Posts: 348
Joined: 10-November 02
From: Hickville, Iowa
Member No.: 8196
Xbox Version: v1.0



?

Is there supposed to be a link somewhere?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Keo-Keo
post Mar 1 2005, 05:16 PM
Post #3


X-S Genius
****

Group: Members
Posts: 871
Joined: 16-July 04
From: Cincinnati Ohio
Member No.: 130805
Xbox Version: v1.0



see first post

This post has been edited by friedgold: Sep 13 2005, 04:18 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Stine
post Mar 1 2005, 11:54 PM
Post #4


X-S Enthusiast


Group: Members
Posts: 27
Joined: 2-February 04
Member No.: 97068



so is this to make any Liinux Distro run under xbox? or just to make mini Distros for your PC?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jcupp114
post Mar 2 2005, 01:09 AM
Post #5


X-S X-perience
**

Group: Members
Posts: 482
Joined: 20-February 04
From: UGA
Member No.: 101376
Xbox Version: none



Sorry about the pm's I didnt know about this. Noob's ness on my part. Thank you for your help and this tutorial. Awesome stuff.

Jcupp114
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Keo-Keo
post Mar 2 2005, 07:11 AM
Post #6


X-S Genius
****

Group: Members
Posts: 871
Joined: 16-July 04
From: Cincinnati Ohio
Member No.: 130805
Xbox Version: v1.0



QUOTE(Stine @ Mar 1 2005, 05:00 PM)
so is this to make any Liinux Distro run under xbox? or just to make mini Distros for your PC?
*



This is just for making mini linux.. Since we are already using a custome compiled kernal all we have to do is edit the files.. Now you can also use this method for adding files to the live debian CD.. But when you start messing with the knoppix compression (cloop) Gets to hard..

@Jcupp114

No it's okay.. I made this today actually! I figured it would help out a few people who might have the same questions as you do..

This post has been edited by Keo-Keo: Mar 2 2005, 07:12 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jcupp114
post Sep 11 2005, 10:49 PM
Post #7


X-S X-perience
**

Group: Members
Posts: 482
Joined: 20-February 04
From: UGA
Member No.: 101376
Xbox Version: none



I just got the 007 game save going and did a quick backup with the 1.8.1 ltools ported to 007 and saw that when executing in linux as I selected the backup function.
The log tries to write to the ma save path instead of the 007 save path. Which folder once the initrd is mounted would have this function?
I have been through the idots folder and changed all that apply however i did let the backup of the scripts remain as I sifted the scripts. Could these backup files of the modified scripts be causing this?

Anyone???


Thank you for your time. Jcupp114
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
friedgold
post Sep 13 2005, 04:20 AM
Post #8


X-S Expert
***

Group: Moderator
Posts: 667
Joined: 28-December 04
From: Bristol, England
Member No.: 181403
Xbox Version: v1.1
360 version: none



Nice smile.gif

I moved you tutorial so it's the first post in the thread and added it to the pinned list of tutorials.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Keo-Keo
post Sep 13 2005, 04:53 AM
Post #9


X-S Genius
****

Group: Members
Posts: 871
Joined: 16-July 04
From: Cincinnati Ohio
Member No.: 130805
Xbox Version: v1.0



Ha.. This is old look at the date.. Back when i was in development of pre beta of opendash ;-).. Thanks
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jcupp114
post Sep 13 2005, 08:23 PM
Post #10


X-S X-perience
**

Group: Members
Posts: 482
Joined: 20-February 04
From: UGA
Member No.: 101376
Xbox Version: none



The project is going very well. I did get the installer going in the 007 AUF gamesave and works very well. I am looking now into adding the nkp10 and new dualboot options along with the ndure.... We will see though....
Thankyou for your help keo keo and the nix thread.
Take care
Jcupp114
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 21st May 2013 - 10:55 PM