Forum.ArchosFans.com

Unofficial Archos Support Forum
It is currently Thu Nov 14, 2019 4:29 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 111 posts ]  Go to page Previous 1 2 3 4 5 6
Author Message
PostPosted: Tue Dec 01, 2009 2:16 am 
Offline
Archos User
Archos User

Joined: Mon Oct 26, 2009 8:11 pm
Posts: 98
generic_username wrote:
... and source code supplied by archilles with his hack...


Archilles has provided no source code.

- Ed


Top
   
PostPosted: Wed Dec 02, 2009 5:31 pm 
Offline
Archos Expert
Archos Expert

Joined: Mon Jan 14, 2008 9:18 pm
Posts: 194
?
Code:
[email protected]:~/ARCHOS/moldy_cheese_v0.2_stable/src$ ls
findgzip.c  henripalooza.c


Code:
/*
 *
 *
 * ---------------------------------------------------------------------------
 *  findgzip.c  by archilles, Oct 2009, Public Domain.
 *
 *  a useless program to find the first occurence of the gzip magic.  used
 *  to extract initramfs from a kernel binary.
 *
 *
*/

#include <stdio.h>

main(int argc, char* argv[])
{
   FILE *file_pointer;
   int count=0;
   int i=1;
   
   while(i && !feof(stdin))
   {
      if(getc(stdin) == 31 && getc(stdin) == 139)
      {
         ungetc(139,stdin);
         ungetc(31,stdin);
         i=0;
      }
   }

   if(i)
   {
      return -1;
   }

   while(!feof(stdin))
   {
      putc(getc(stdin),stdout);
   }
      
}


Code:
/*
 *
 *
 * ---------------------------------------------------------------------------
 *  henripalooza.c  by archilles, Oct 2009, Public Domain.
 *
 *  this program will most definitely brick your archos if you dont know
 *  what you are doing.  but if you do know what you are doing, then it
 *  will set you free.
 *
 *  i dedicate this to the archos decision-makers. may you burn in hell.
 *
 *  only to be used on 605 (non-flash) devices running 1.7.13.
 *
 *  you have been warned!!
 *
*/

#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/ioctl.h>

#define FLASH_WRITE_COMMAND 4
#define FLASH_READ_COMMAND 5

typedef struct flash_struct
{
   int32_t size_of_struct;
   int32_t start_address;
   int32_t read_length;
   char * memory_store;
} flash_struct;

main(int argc, char* argv[])
{
   FILE *file_pointer;
   int err;
   int i;

   printf("archilles is in your archos, hackin your flashz!!\n\n");

   int device_pointer = open("/dev/flashrw", O_RDONLY);
   if (device_pointer < 0)
   {
      system("/sbin/insmod /lib/modules/flashrw.ko");
      device_pointer = open("/dev/flashrw", O_RDONLY);
      if(device_pointer < 0)
      {
         printf("error: could not enable flash access\n\n");
         return -1;
      }
   }
   
   unsigned char* memory = (unsigned char*)calloc(65536,1);
   flash_struct flash = {16, 0, 65536, memory};
   
   // poorly verify 1.7.13 and hack boot0
   err = ioctl((int)device_pointer, FLASH_READ_COMMAND, &flash);
   if(   err != 0 ||
      memcmp(memory+736,"\x8a\x01\x00\xeb", 4) != 0 )
   {
      printf("flash read error or you are not running 1.7.13 firmware.%d \n\n",err);
      return -1;
   }
   else
   {
      memcpy(memory+736,"\x00\x00\xa0\xe3", 4);
      err = ioctl((int)device_pointer, FLASH_WRITE_COMMAND, &flash);
   }


   // poorly verify 1.7.13 and hack boot1
   flash.start_address = 196608;
   err = ioctl((int)device_pointer, FLASH_READ_COMMAND, &flash);
   if(   err != 0 ||
      memcmp(memory+34804,"\xf0\x41\x2d\xe9\x01\x60\xa0\xe1", 8) != 0 )
   {
      printf("flash read error or you are not running 1.7.13 firmware.\n\n");
      return -1;
   }
   else
   {
      memcpy(memory+34804,"\x00\x00\xa0\xe3\x1e\xff\x2f\xe1", 8);
      err = ioctl((int)device_pointer, FLASH_WRITE_COMMAND, &flash);
   }

   close(device_pointer);
   free(memory);
   printf("live free.\n\n");
}


best part "archilles is in your archos, hackin your flashz!!" rofl =D>


Top
   
PostPosted: Fri Dec 04, 2009 3:01 am 
Offline
Archos User
Archos User

Joined: Mon Oct 26, 2009 8:11 pm
Posts: 98
My apologies, I had not seen that. Where's that from?

I certainly haven't seen the mouldy_cheeze sources though....

- Ed


Top
   
PostPosted: Sun Dec 06, 2009 8:48 pm 
Offline
Archos Expert
Archos Expert

Joined: Mon Jan 14, 2008 9:18 pm
Posts: 194
Code:
[email protected]:~$ cd /home/user/A605
[email protected]:~/A605$ wget http://archos-liberation-front.googlecode.com/files/moldy_cheese_v0.2_stable.zip
--2009-12-06 12:43:32--  http://archos-liberation-front.googlecode.com/files/moldy_cheese_v0.2_stable.zip
Resolving archos-liberation-front.googlecode.com... 74.125.95.82
Connecting to archos-liberation-front.googlecode.com|74.125.95.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34145472 (33M) [application/x-zip]
Saving to: `moldy_cheese_v0.2_stable.zip'

100%[======================================>] 34,145,472  1.04M/s   in 63s     

2009-12-06 12:44:36 (529 KB/s) - `moldy_cheese_v0.2_stable.zip' saved [34145472/34145472]

[email protected]:~/A605$ unzip moldy_cheese_v0.2_stable.zip
Archive:  moldy_cheese_v0.2_stable.zip
  inflating: cpio_list               
  inflating: cpio.secure             
  inflating: findgzip               
  inflating: FREEDOM                 
  inflating: henripalooza           
  inflating: optfs.cramfs           
  inflating: rootfs.cramfs.secure   
   creating: src/
  inflating: src/findgzip.c         
  inflating: src/henripalooza.c 

its right in the zip... no worries mate. could tell ya bout mouldy--dont have a5/7.


Top
   
PostPosted: Wed Dec 09, 2009 12:32 am 
Offline
Archos Novice
Archos Novice

Joined: Wed Nov 04, 2009 2:56 pm
Posts: 1
Hello!

I just want to share my experience made with my Archos 605 Wifi 30GB and MiniDock after updating to moldy cheese v0.2 final.

1.) Movie Player: In overlay a number with positive or negative value is shown in the middle of the progess bar. Does someone know it's meaning?

2.) Standby mode: If I turn off device into standby mode, one of two events will occur exactly after 24 hours: Backlight and HDD power on for 1-2 seconds or device resumes to desktop running as long as defined in energy settings. It's repeatable.

3.) MiniDock: USB Sticks don't show up in file explorer any more. External HDDs and cardreaders work fine. In shell dmesg reports MiniDock and Stick are recognized but filesystem is unknown. Manual mount -t vfat... works fine.

I formated HDD with LCD/TV button option and reinstalled device to ensure no old settings might let occur this behaviour. And I checked HDD with chkdsk and HD Tune to ensure HDD isn't faulty.

I didn't read about such problems with moldy cheese final from active forum members. Maybe it's all by chance and my device became faulty just the same time I installed moldy cheese. Any ideas?


Top
   
PostPosted: Wed Dec 09, 2009 5:40 am 
Offline
Archos Expert
Archos Expert

Joined: Mon Jan 14, 2008 9:18 pm
Posts: 194
1. confirmed. not sure the meaning either? i assume they are debugging symbols of some kind
2? ... so? does this hurt it?
3? no minidock sry

btw a .2 release is hardly final, stable though--in my personal experience the archos has crashed less than when i ran only avos(however i use the device alot less now, so thats probably why)

edit: also mc comes with a 2.1.x avos that could be the cause :D


Top
   
PostPosted: Wed Dec 09, 2009 1:44 pm 
Offline
Archos Guru
Archos Guru

Joined: Thu Nov 23, 2006 10:37 pm
Posts: 627
Location: Berlin
micsiege wrote:
1.) Movie Player: In overlay a number with positive or negative value is shown in the middle of the progess bar. Does someone know it's meaning?


It seems to be a sideeffect of the screen plugin. Could be some debug output. I don't know the meaning, though.

_________________
openAOS


Top
   
PostPosted: Wed Dec 23, 2009 2:46 am 
Offline
Archos User
Archos User

Joined: Mon Dec 21, 2009 1:10 am
Posts: 115
Could Somebody help me install moldy cheese, i do have the right firmware, and typed the command in the password box.
Can anybody help?


Top
   
PostPosted: Tue Feb 16, 2010 7:25 pm 
Offline
Archos Novice
Archos Novice

Joined: Fri Jan 08, 2010 8:48 am
Posts: 2
After searching throughout the forums and on the web, I have not seen anything about using this hack on a factory refurbished model, I would like all those who have bought a refurb through ebay, that this does work and I have tested it myself. I was just about going to give up and be an archos bitch and give in to buying all the accessories and plug-ins but decided it was worth a try since i got it for about $105.

hope this helps those like me that wondered about if archos messed with the refurbs, my model came with 1.7.13 so that was one of the worries I had, it was almost like they were setting me up for a brick.

still slow as sap flowing down a tree but i bought it to connect to TV's to watch movies while i travel,

BTW: A605wifi 30gb


Top
   
PostPosted: Sat Jul 02, 2011 6:08 pm 
Offline
Archos Novice
Archos Novice

Joined: Mon Sep 01, 2008 6:59 pm
Posts: 12
grond wrote:
idontknow wrote:
Since modifying the Flash is always a risky operation, I would appreciate if our great gurus out there could check my assumptions and confirm that the proposed solution is OK. Thanks in advance!


I think it will be much easier to just also flash the cpio to the bootrom where it is loaded from in your case. That is, once there is a stable "moldy cheese". The copy in the bootrom is used for the recovery operation so it should be made sure that it actually runs well for obvious reasons.


I don't know if some people are still using their old A605, but i do! Since moldy cheese was released, i had to use a 80GB HDD because archos firmware are unable to load cpio.secure from HDD bigger than 120GB (137GB to be exact). I made some research to find why (see my post #9 on page 3), but since it is very risky to modify boot1 in flash, i never tryied anything.

Grond suggested that i should better flash a stable moldy cheese cpio.secure in bootrom. I never did it, but since i want to upgrade my HDD, i was ready to try. The problem is that i've discovered that the space in bootrom just after the end of original cpio.secure in rom is not empty! My device has 1.7.06 cpio.secure in ROM from 0x50000 up to 0x1C2EA7 (corresponding to size of the 0x50000 segment extracted from 1.7.06 aos update file: 1 519 272 bytes), but the following space is full of unknown data from 0x1C2EA8 up to 0x1DFFFF (before first logo begining at 0x1E0000), and i not able to identify these data. Is it useful data? Or is it garbage unerased from previous/factory flash rom content?

Since cpio.secure from moldy cheese 0.2 is a little bigger (1 531 048 bytes), i'm afraid of bricking my A605 if i erase important data in flash ROM :?

Is there any expert there that could confirm if it would be safe to flash moldy cheese cpio.secure to flash rom from 0x50000 up to 0x1C5CA8 (thus erasing existing data between 0x1C2EA8)???

Thanks in advance...


Top
   
PostPosted: Sun Jul 03, 2011 4:24 pm 
Offline
Archos Novice
Archos Novice

Joined: Mon Sep 01, 2008 6:59 pm
Posts: 12
Just a reply to myself:

Yes, remaining data are garbage (thanks to Grond for his confirmation). I have flashed Moldy cheese v0.2 cpio.secure to flash rom at 0x50000 and now i can use my 160GB (and probably bigger) HDD with moldy cheese (cpio.secure is loaded from ROM when loading from HDD fails).

As a warning: flashing ROM is always risky and you can easily brick your device if you do something wrong! You've been warned...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 111 posts ]  Go to page Previous 1 2 3 4 5 6

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited