![]() |
|
|||
|
|
||||
|
||||||
| Dbox Section All Things Dbox Here |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Northern Git Admin
Team-UkCvs Senior Member
Join Date: Aug 2008 ![]()
Posts: 5,098
iTrader: (0)
Casino cash: $326674
Thanks: 1,126
Thanked 1,271 Times in 538 Posts
Nominated 8 Times in 6 Posts
TOTW/F/M Award(s): 4Groans: 1
Groaned at 0 Times in 0 Posts
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |