Extract root from Squashfs - UkCvs.org
 

Go Back   UkCvs.org > Digital Tv Box Section > Dbox Section

Dbox Section All Things Dbox Here

Reply
 
LinkBack Thread Tools Display Modes
Old 28-09-2008, 09:41 PM   #1 (permalink)
Northern Git Admin
Team-UkCvs Senior Member
 
renwich's Avatar
 
Join Date: Aug 2008
1 Highscore

Posts: 5,098
iTrader: (0)
Casino cash: $326674
Thanks: 1,126
Thanked 1,271 Times in 538 Posts
Nominated 8 Times in 6 Posts
Nominated TOTW/F/M Award(s): 4
Groans: 1
Groaned at 0 Times in 0 Posts
Default Extract root from Squashfs

I used to play with the sportster images a while ago, they were pretty easy to mod, but since the new Squashfs 3.0 LZMA was put into the CVS, I've never had success in being ably to re-compress the root and flash it back on

tonight however after a bit of trial and error I found out why.

following the TUT from PT-1's help file

Telnet to your Box


Please then check where your root is located

Example:
dev: size erasesize name
mtd0: 00020000 00004000 "BR bootloader"
mtd1: 00020000 00020000 "flfs (u-boot)"
mtd2: 007c0000 00020000 "root (jffs2)" our example might be different on your Image
mtd3: 007e0000 00020000 "flash without bootloader"
mtd4: 00800000 00020000 "complete flash"

Then make

mkdir /var/tmp/root

Then

mount -t squashfs -o ro /dev/mtdblock/2 /var/tmp/root
(MAKE SURE YOU CHECK BEFORE WHAT MTD ROOT IS!!)


Then

cd /var/tmp <<--- exactely like this; Do NOT change into /var/tmp/root !!!

Then

tar -cf root.tar root

Copy that file via FTP to your PC and add/mod the files you want changed.

tar -xf root.tar and mod it yourself within Linux and after that


all is well upto to this step


I use to use this to re-compress the image



mksquashfs root mtd3.img -be



and then flash the root back onto the box

but since LZMA this has always caused my box to hang on loading kernel

Tonight I found the following works, sorta obvious once you know Doh..!

Code:
/home/dbox(on-my-box)/tuxbox/dbox2/cdk/bin/mksquashfs-lzma root mtd3.img -be









renwich is online now   Reply With Quote
The Following 5 Users Say Thank You to renwich For This Useful Post:
arion (30-01-2009), bobsylas (29-09-2008), PaphosAL (13-10-2008), thebigman (11-10-2008), wiz569 (30-09-2008)
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing the error "mounting root failed" when installing ESX 3.5 on a system with an u renwich Operating Systems 0 17-09-2008 10:22 PM


All times are GMT. The time now is 12:13 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Any information provided on this site is not guaranteed in any way. Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, use at your own risk !! Ukcvs.org cannot be held responsible for the content of any post on this forum.