Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to boot this from an spi eeprom #27

Open
hannescam opened this issue Dec 5, 2022 · 14 comments
Open

is it possible to boot this from an spi eeprom #27

hannescam opened this issue Dec 5, 2022 · 14 comments

Comments

@hannescam
Copy link

No description provided.

@ehristev
Copy link

ehristev commented Dec 5, 2022

I think i's possible but usually eeproms are very small 1 kByte , 2 kBytes and it would be difficult to fit a bootloader there
It's definitely possible to boot from an SPI flash which is a bit more generous in size

@hannescam
Copy link
Author

hannescam commented Dec 5, 2022

no this one is a 8 mega byte flash so no such 2 kb constrains (i never saw any smaller that 512 kb)
so i hope it will be developed for spi eeprom/flash

@ehristev
Copy link

ehristev commented Dec 5, 2022

do you have a link to this memory online ?

@hannescam
Copy link
Author

@ehristev
Copy link

ehristev commented Dec 5, 2022

From my opinion it should work. I suggest you try , to make sure it works.
If you want to place also the Stage2 bootloader (boot.bin) make sure the ROM code is correctly configured to try booting from SPI with the correct IOset and boot config

@hannescam
Copy link
Author

so if undertand it right you mean just try to flash it and if it works try to configure it else retry right

@ehristev
Copy link

ehristev commented Dec 5, 2022

I suggest so. Get one flash and use fly wires to connect it . Do not create a custom board unless you are sure it works in a proof of concept first.

@hannescam
Copy link
Author

hannescam commented Dec 5, 2022

ok and i will flash the eeprom with an cha341 and the flashrom software and i dont design a board it is because i have about 5 xprintserver boards and i get more and i want use them

@hannescam
Copy link
Author

hannescam commented Dec 5, 2022

i cant find any documentation how to build this for the at91sam9g25 under linux

@hannescam
Copy link
Author

@ehristev can you help me compile the uboot for the at91sam9g25 chip under linux debian/arch

@ehristev
Copy link

@hannescam
sam9g25 chip is part of the sam9x5 series.
You can build U-boot for the sam9x5 series EK board, this is a board where you can insert a different module, in your case 9g25, it also supports 9x35, etc.
So it should work for your chip as well.
If you do not have the EK board I do not believe we support another board with this chip.
The config files in Uboot for the sam9x5 series EK are as folllows:

at91sam9x5ek_dataflash_defconfig
at91sam9x5ek_mmc_defconfig
at91sam9x5ek_nandflash_defconfig
at91sam9x5ek_spiflash_defconfig

To build them, follow the general Uboot building procedure as for any other board as per Uboot documentation.

Hope this helps.

@hannescam
Copy link
Author

hannescam commented Dec 22, 2022

ok i will try it but i dont have the ek board but i think my board is similar egnuth that it could work

@hannescam
Copy link
Author

hannescam commented Dec 23, 2022

i tried to built it but it says "cc1: Fehler: falscher Wert »armv5te« für Schalter »-march=«" it means "cc1: error: wrong value »armv5te« for switch »-march=«"
and a screenshot:
image
and i did type the command "make at91sam9x5ek_spiflash_defconfig" in before running make and the output of it:

[hannes@Hannes-VAIO u-boot-at91]$ make at91sam9x5ek_spiflash_defconfig
#
# configuration written to .config
#

@hannescam
Copy link
Author

i compiled it using a arm sbc and the make option: "CROSS_COMPILE=arm-linux-gnueabi-"
and i will flash u-boot.bin to the spi flash chip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants