Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://reverseengineering.stackexchange.com/questions/13720/how-to-make-freescale-imx233-mp3-player-boot-with-identical-type-player-firmware
- “If copying an entire partition breaks, what about copying certain files of those partitions? How does the filesystem look like on the partitions in both types of devices? Which files look related to the devices OS? how different are those? And other similar questions. – NirIzr Oct 19 at 21:49“
- The Freescale mx23 OS partition is a type 53 partition and it only contains a single file. A ‘safe binary’ or *.sb file. This file is an encrypted binary. This mp3 player used the default all zero key so I was able to decrypt the *.sb file using the tool provided by Rockbox. ‘sbtoelf’.
- I have a firmware update sb file. Decrypted successfully.
- I have the original sb file that I carved out of the mmc image and partition for the TEST device. Decrypted successfully.
- I also have the sb files from 2 DONAR devices. Decrypted successfully.
- I have dd the OS type 53 partition in its entirety to the TEST player.
- ‘dd if=/mnt/usb/donar1.p2 of=/dev/mmcblk0p2 bs=512‘
- I have dd the sb file itself to see if there was data beyond the sb file and in the type 53 partition. (the sb file does not fill up the entire partition).
- ‘dd if=/mnt/usb/donar1.sb of=/dev/mmcblk0p2 bs=512 seek=4‘
- The 2048 byte spacing must be maintained for the device to boot.
- I have verified my dd syntax by ‘reinstalling’ the original *.sb file and/or partition and/or full image to the TEST player and booting it.
- I have custom compiled u-boot and a linux kernel for this device and do my work from the command line on this OS.
- I am not able to mount ANY of the partitions from here. If you look at the partition table you can probably see why.
- The remaining 3 partitions are type (0x01) fat12.
- When I plug the player into a computer (OTG mode?) the host computer will mount a FAT32 partition as a mass storage device. The only files here is the media (*.mp3, *.mp4) AND a couple of info files that contain user customization.
- I have swapped around the user customization files just to see. No affect.
- I have swapped the other partitions 1 at a time. No affect.
- ----------------------------------------------------------------------------
- Disk /dev/mmcblk0: 8120 MB, 8120172544 bytes
- 4 heads, 16 sectors/track, 247808 cylinders, total 15859712 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Device Boot Start End Blocks Id System
- /dev/mmcblk0p1 * 170006 15532031 7681013 1 FAT12 15362025
- Partition 1 does not end on cylinder boundary
- /dev/mmcblk0p2 4 110607 55302 53 Unknown
- Partition 2 does not end on cylinder boundary
- /dev/mmcblk0p3 165910 167957 1024 1 FAT12
- Partition 3 does not end on cylinder boundary
- /dev/mmcblk0p4 167958 170005 1024 1 FAT12
- Partition 4 does not end on cylinder boundary
- Partition table entries are not in disk order
- ----------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment