[E3-hacking] Understanding the E3s Partitions

Nick Griffin span1922 at live.com
Sun Apr 14 03:37:12 BST 2019


Its lights flash when you plug it in and thats it pbltool says probbing and nothing else...?



Sent from my Samsung Galaxy smartphone.


-------- Original message --------
From: David Given <dg at cowlark.com>
Date: 13/04/2019 22:58 (GMT+00:00)
To: Discussion of the Amstrad E3 emailer hardware/software <e3-hacking at earth.li>
Subject: Re: [E3-hacking] Understanding the E3s Partitions

It's pretty hard to brick them --- PBL's in a different ROM chip to the main flash (and I think you can't reflash it anyway?), so even if you've trashed the main flash PBL runs. So, you should be able to connect pbltool or pblq to it and read and reflash, even if it doesn't boot.


On Sat, 13 Apr 2019 at 21:47, Nick Griffin <span1922 at live.com<mailto:span1922 at live.com>> wrote:
Dam..Just tried to flash the E3 and now it don’t boot, ah well..☹
With that's code and it starred coming up with “Flashing Data to NAND Flash without EEC in not recommended”

On Putty it just comes up with this and that's it..
“Amstrad Delta - PBL V4.9 Build:1311 Assert Debug ICE
PBL 32MB NAND
0MB.-->MEMv01.00.002,CopyLim=00220000h,CodeEnd=01400000h-->PBL......1MB.......2MB*”
Dam have to buy another one now. Ah well if you don’t try you’ll never learn.. 😊

Spanner..

From: Nick Griffin<mailto:span1922 at live.com>
Sent: ‎Saturday‎, ‎13‎ ‎April‎ ‎2019 ‎16‎:‎46
To: Discussion of the Amstrad E3 emailer hardware/software<mailto:e3-hacking at earth.li>

root at amsdelta<mailto:root at amsdelta>:~#  cat /proc/mtd
dev:          size       erasesize          name
mtd0: 00380000 00004000 "Kernel"
mtd1: 00040000 00004000 "u-boot"
mtd2: 00040000 00004000 "u-boot params"
mtd3: 00040000 00004000 "Amstrad LDR"
mtd4: 01b00000 00004000 "File system"
mtd5: 000c0000 00004000 "PBL reserved"
 Just realised there are all the same Block size, look at the erasesize.
“flash_erase /dev/mtd0 0 16” whats the 16 for at the end of the line, is it what block size to  erase, ( can’t work out what number to put there)could I just erase the whole partition(mtd0) with “flash_erase /dev/mtd0 0 0”..? I don’t want to made a mistake..??

Spanner..

From: Nick Griffin<mailto:span1922 at live.com>
Sent: ‎Saturday‎, ‎13‎ ‎April‎ ‎2019 ‎16‎:‎24
To: Discussion of the Amstrad E3 emailer hardware/software<mailto:e3-hacking at earth.li>

mtd0
Block Size 16384,Page Size 512, 00B Size 16
Dumping data starting at 0x00000000 and ending at 0x00380000...*
mtd1
Block Size 16384,Page Size 512, 00B Size 16
Dumping data starting at 0x00000000 and ending at 0x00040000...*
mtd2
Block Size 16384,Page Size 512, 00B Size 16
Dumping data starting at 0x00000000 and ending at 0x00040000...
mtd3
Block Size 16384,Page Size 512, 00B Size 16
Dumping data starting at 0x00000000 and ending at 0x00040000...*
mtd4
Block Size 16384,Page Size 512, 00B Size 16
Dumping data starting at 0x00000000 and ending at 0x01b00000...*
mtd5
Block Size 16384,Page Size 512, 00B Size 16
Dumping data starting at 0x00000000 and ending at 0x000c0000...

Why are there saying all the same block size..?

Only need to restore mtd0, mtd1, mtd3 and mtd4 so ones with a star(*) on.mtd2, mtd5 are not flashed over.

Spanner..

From: Nick Griffin<mailto:span1922 at live.com>
Sent: ‎Friday‎, ‎12‎ ‎April‎ ‎2019 ‎19‎:‎32
To: Discussion of the Amstrad E3 emailer hardware/software<mailto:e3-hacking at earth.li>

Just copy the Amstrad Firmware to USB and as well flash Linux on the E3 so now I have to find a way to flash it back.. 😊 wow its takes a long time to boot, it took about a hour to copy the Amstrad Firmware over to USB.Is each file a copy of the partition(mtd0,1,2,3,4,5,) only mtd0,1,3 and 4 get flashed with the new system, so if the backups are complete copies then they could be flash back the same way, maybe something like this, taking the code for mdt0..

”if [ -e /media/sda1/e3-nand-backup.0 ]; then
 echo Found Amstrad kernel.
 echo "  Erasing /dev/mtd0"
 flash_eraseall /dev/mtd0
 echo "  Writing Amstrad kernel to /dev/mtd0"
nandwrite -on /dev/mtd0 /media/sda1/e3-nand-backup.0
fi”

Mtd0,2,3,4,5 Size 16384,Page Size 512, 00B Size 16
only need to restore mtd0,1,3 and 4 so ones with a * on.
mtd0: Dumping Data Starting at 0x00000000 and ending at 0x00300000*
mtd1: Dumping Data Starting at 0x00000000 and ending at 0x00040000*
mtd2: Dumping Data Starting at 0x00000000 and ending at 0x00040000
mtd3: Dumping Data Starting at 0x00000000 and ending at 0x00040000*
mtd4: Dumping Data Starting at 0x00000000 and ending at 0x01b00000*
mtd5: Dumping Data Starting at 0x00000000 and ending at 0x000c0000
I don’t know how much of the Nand you would need to erase for each partition..?
So lucky I recored the install..😊 I be uploading soon once I have edited it.
This is just guess work don’t know if it would work, need someone who knows about the code. If I manage to flash the Amstrad Firmware back and it works then you be able to flash any E3 firmware this way so even with one with the config change on it.

There is info here how to flash to mtd ..  https://forum.doozan.com/read.php?3,16789,16800<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Feur04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%3A%2F%2Fforum.doozan.com%2Fread.php%3F3%252c16789%252c16800%26data%3D02%257c01%257c%257c43dd69f306b24fa4d01308d6bf7526b0%257c84df9e7fe9f640afb435aaaaaaaaaaaa%257c1%257c0%257c636906907207602767%26sdata%3Dl0A1sVMwvXx2BYpNyQBhS72Osn%2F%252BKERDRDUddCciVB8%253D%26reserved%3D0&data=02%7C01%7C%7C9e77728c4b964d7c249608d6c05b1f98%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636907894932883709&sdata=2%2B12YTPjS2b4AIgYs5ITr7bSUACkrz5lUYqq9GTPeEU%3D&reserved=0>

Spanner..

From: Nick Griffin<mailto:span1922 at live.com>
Sent: ‎Friday‎, ‎12‎ ‎April‎ ‎2019 ‎14‎:‎10
To: Discussion of the Amstrad E3 emailer hardware/software<mailto:e3-hacking at earth.li>

Oh one more thing.. the USB memory stick,does it matter if its fat or fat32 formatted to copy the 6 files over to it,it don’t say in the Readme..?

Spanner..

From: Nick Griffin<mailto:span1922 at live.com>
Sent: ‎Friday‎, ‎12‎ ‎April‎ ‎2019 ‎14‎:‎02
To: Discussion of the Amstrad E3 emailer hardware/software<mailto:e3-hacking at earth.li>

“When it flash's Linux to the E3 it only uses partitions mtd0,mtd1,mtd3 and mtd4, so mtd2 and mtd3 is not used.”

mtd0 - kernel
mtd1 - PBL ( Maybe, I say this because Uboot is flashed there.)
mtd3 - ldr ( File System..? uses mtdblock3 of mtd3)
mtd4 - Root( Root File System,maybe ?? uses mtdblock4 of mtd4)

What are mtd2 and mtd5 used for..??

Trying to find out what each Partition is used for?

Is the Amstrad Install Script running in a Ramdisk..??
You have 2 Uboot images the same, one for flashing the other on for the install so you made it a bit like FEL mode where you hold down the FEL Button and can boot into Uboot +ramdisk  from you PC thought its usb cable that powers it then you can mount the system partition to get into files and folders, that's on TheC64 Mini.
Most Developing Boards now have the FEL button.

Just trying to find out more ,it dumps the firmware into 6 partitions, when it dumps them, can they be put back the way they are or do they need to be converted, so what I am say, are they raw files so they can’t be used the way they are at the moment…?

You can backup your firmware with this script without installing Linux on the E3,you can say no to installing it, right..?? if so I will try and see if I can back the E3 up to get the 6 backup files.

P.S Have not done anything with my E2Plus yet, if I can backup its firmware and then flash it back then I can fix the dead E2s out there, but I need help.
If I can backup its firmware I am willing to share it.But don’t worry my E2Plus is going no where.. 😊 Just been looking at you page Ralph,One of the problem with the E2 is it don’t run Linux, I am trying to find out more about its firmware at the moment.
The E1 and E2 use the same Firmware and same CPU Sharp LH79531 ARM (L136 00B), the only difference in them is the Plus had ZX Spectrum games. So I might be able to use the firmware from the E2 on the E1. The E3 had a different CPU because it need a MMU for the Colour LCD screen so need to be more powerful than the E1,E2.

Spanner..

_______________________________________________
e3-hacking mailing list
e3-hacking at earth.li<mailto:e3-hacking at earth.li>
https://www.earth.li/mailman/listinfo/e3-hacking<https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.earth.li%2Fmailman%2Flistinfo%2Fe3-hacking&data=02%7C01%7C%7C9e77728c4b964d7c249608d6c05b1f98%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636907894932903725&sdata=yoQFjKFldJJyXTpTxihfkRZVI0habkdsSqja6Drv%2Bk8%3D&reserved=0>


--
┌─── http://www.cowlark.com<https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cowlark.com&data=02%7C01%7C%7C9e77728c4b964d7c249608d6c05b1f98%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636907894932913736&sdata=deHC%2F7bAIe5TA5FHTaOwDsfDj3CwxIUKwSRJNsizr2k%3D&reserved=0> ───
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.earth.li/pipermail/e3-hacking/attachments/20190414/5e1a13e8/attachment-0001.html>


More information about the e3-hacking mailing list