LINUX na AVR (Re: SDRAM - lze nezapojit A12 (spojit s A11) ?)
Jaromir Sukuba
jarin.hw na gmail.com
Pondělí Březen 25 11:55:19 CET 2013
Tu https://code.google.com/p/retrobsd/source/checkout mate napisane ze
treba urobit
svn checkout http://retrobsd.googlecode.com/svn/current/ retrobsd-read-only
Tu http://retrobsd.org/wiki/doku.php/doc/index mate viac informacii,
ale hlavne vas bude zaujimat asi toto
http://retrobsd.org/wiki/doku.php/doc/toolchain-mips ak si to chcete
cvicne buildnut. Mimochodom, zdrojak pre SDRAM je pisany v PIC32 (MIPS
M4K) assembleri, zelam Vam prijemnu zabavu pri jeho citani :-)
2013/3/25 Jaroslav Buchta <jaroslav.buchta na hascomp.cz>:
> Asi jsem trosku zabrzdenej dneska, ale stahnul jsem
> http://retrobsd.googlecode.com/svn/stable/ retrobsd-stable (doufam komplet,
> musel jsem v Linuxu, pod win se nejak nedarilo) a nic co by se podobalo
> zdrojaku pro SDRAM tam nemuzu najit...
> Muzete me pls popostrcit?
>
> Dne 24. 3. 2013 12:59, Jaromir Sukuba napsal(a):
>
>> Ta vec s SDRAM je moj prispevok do projektu RetroBSD -
>> http://retrobsd.org/wiki/doku.php/wiki/software
>> Ostatne veci tu http://jaromir.xf.cz/bsd/bsd_comp.html
>>
>> Inak s tymi SDRAM je to pakaren, lepsie je pouzit MCU s SDRAM
>> driverom, resp. externy driver.
>>
>> 2013/3/24 Jaroslav Buchta <jaroslav.buchta na hascomp.cz>:
>>>
>>> Pekne, s tou SDRAM jste se programoval od pocatku nebo se daji nejake
>>> zdrojaky najit na webu?
>>> Na prvni pohled mi to prijde dost badani to naprogramovat a vychytat...
>>> Docela bych to zkusil, pametovych modulu mam plnej suplik a i jinak se
>>> muze
>>> takova vetsi RAM v nekterych aplikacich hodit.
>>>
>>> Dne 24. 3. 2013 11:15, Jaromir Sukuba napsal(a):
>>>
>>>> S takouto vecou by som nevydrzal dlho cakat. Mal som to nadrotovane za
>>>> jeden vecer a mohol som zacat programovat.
>>>> Mimochodom, ten UNIX stroj s SDRAM tiez najprv bezal na univerzalke...
>>>>
>>>> 2013/3/24 Jaroslav Buchta <jaroslav.buchta na hascomp.cz>:
>>>>>
>>>>> Me zas nebavi to dratovani, ta deska byla puvodne navrzena na vyrobu v
>>>>> Cine
>>>>> za par korun 5x5cm ale nakonec se to dalo do panelu k jinym deskam na
>>>>> POOL
>>>>> do pragoboardu ;-)
>>>>>
>>>>> Dne 24. 3. 2013 11:04, Jaromir Sukuba napsal(a):
>>>>>
>>>>>> Ani mne sa to nepaci, ale snad nebudem na kazdu hovadinu vyrabat
>>>>>> normalny plosak :-)
>>>>>>
>>>>>> Bitbangovanu SDRAM mam pouzitu na UNIX-ovom minipocitaci
>>>>>>
>>>>>> https://picasaweb.google.com/111890741167251011072/RetroBSDMinicomputer
>>>>>>
>>>>>>
>>>>>> 2013/3/24 Jaroslav Buchta <jaroslav.buchta na hascomp.cz>:
>>>>>>>
>>>>>>> Hezke, ale nelibi se mi pouziti tech modulu - otazkou je, jak slozite
>>>>>>> je
>>>>>>> SW
>>>>>>> zvladnout ovladani SDRAM, na minimalni frekvenci CLK tusim nejak
>>>>>>> extra
>>>>>>> citlive nejsou, s takovym STM32F407xxx na 168MHz by to mohlo docela
>>>>>>> svistet
>>>>>>> ;-)
>>>>>>> Me to zatim zase bootuje, protoze jsem to premistil do garaze k
>>>>>>> notasu
>>>>>>> co
>>>>>>> monitoruje TC aby se tak nenudil ;-)
>>>>>>>
>>>>>>> Dne 24. 3. 2013 10:07, Jaromir Sukuba napsal(a):
>>>>>>>
>>>>>>>> Ja som to urobil takto http://jaromir.xf.cz/arm_emu/arm_emu.html na
>>>>>>>> PIC32, mam rychlost emulacie asi 110000 instrukcii za sekundu.
>>>>>>>> Bootuje to asi za 13 minut :-)
>>>>>>>>
>>>>>>>> 2013/3/24 Jaroslav Buchta <jaroslav.buchta na hascomp.cz>:
>>>>>>>>>
>>>>>>>>> Tyjo, ono to funguje
>>>>>>>>>
>>>>>>>>> http://dmitry.gr/index.php?r=05.Projects&proj=07.%20Linux%20on%208bit
>>>>>>>>> ;-)
>>>>>>>>> No to je neco, takovy prace to autorovi muselo dat a pritom takova
>>>>>>>>> blbost
>>>>>>>>> ;-) Na te ATXMEGA taky zadna rychlostni hitparada, emuluje asi
>>>>>>>>> 12-13000
>>>>>>>>> cyklu /s (puvodni projekt zminuje 10000)
>>>>>>>>> Prinos HW radice SDRAM neni asi nijak vyrazny, navic jsem do SDRAM
>>>>>>>>> musel
>>>>>>>>> dat
>>>>>>>>> i stav emulovaneho CPU (SoC), protoze ma pres 12kB a nejak mi
>>>>>>>>> nedoslo,
>>>>>>>>> ze
>>>>>>>>> je
>>>>>>>>> ta XMEGA na tom tak spatne se SRAM.
>>>>>>>>> No uvidime jestli se za nejakou tu hodinku dokonci bootovani :-P
>>>>>>>>>
>>>>>>>>> Kazdopadne tam ma autor pouzitou nejakou slabsi implementaci SD, na
>>>>>>>>> moji
>>>>>>>>> mikroSD se to absolutne nechytalo, snazil jsem se to priohnout par
>>>>>>>>> hodin
>>>>>>>>> ale
>>>>>>>>> inicializace karty je tam nejaka divna - tak jsem to napasoval na
>>>>>>>>> ten
>>>>>>>>> prvni
>>>>>>>>> odkaz od p Astera a tam je implementace super, funguje jak SD tak
>>>>>>>>> SDHC
>>>>>>>>> a
>>>>>>>>> podpora FAT je tam take hezky udelana - dokonce ma i hezky shell
>>>>>>>>> kterym
>>>>>>>>> se
>>>>>>>>> da karta testovat... Takze jsem ten druhy odkaz ani nezkoumal, jen
>>>>>>>>> stahnul.
>>>>>>>>> To byl hezky bastlirsky vikend ;-)
>>>>>>>>>
>>>>>>>>> mimochodem, nejake zdrojaky, kde by bylo s kartou pracovano ne v
>>>>>>>>> SPI
>>>>>>>>> ale
>>>>>>>>> v
>>>>>>>>> SDIO modu bez HW podpory, nemate?
>>>>>>>>>
>>>>>>>>> Maly obrazek HW v priloze...
>>>>>>>>>
>>>>>>>>> Dne 23. 3. 2013 7:48, Jaroslav Buchta napsal(a):
>>>>>>>>>
>>>>>>>>> Diky za odkazy, to vypada super.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dne 23. 3. 2013 0:55, Zdeněk Aster napsal(a):
>>>>>>>>>
>>>>>>>>> Jinak k SD karte funguje na AVR tento software
>>>>>>>>> http://www.roland-riegel.de/sd-reader/
>>>>>>>>> A super FAT obsluha je zde
>>>>>>>>> http://elm-chan.org/fsw/ff/00index_e.html
>>>>>>>>> jen
>>>>>>>>> je
>>>>>>>>> nutne k ni
>>>>>>>>> dodelat funkce pro cteni treba z SD.
>>>>>>>>> Jsem se upsal u toho ovladani melo byt oboje treba A10, ale asi to
>>>>>>>>> bylo
>>>>>>>>> jasne :-D
>>>>>>>>>
>>>>>>>>> Zdenek Aster
>>>>>>>>>
>>>>>>>>> ---------- Původní zpráva ----------
>>>>>>>>> Od: Jaroslav Buchta <jaroslav.buchta na hascomp.cz>
>>>>>>>>> Datum: 22. 3. 2013
>>>>>>>>> Předmět: Re: SDRAM - lze nezapojit A12 (spojit s A11) ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> No jo, asi tak kdyz uz jsem ozelel dalsich 16MB uzemnenim A12 ;-)
>>>>>>>>> Je to takovy hobby projekt, ted rozchodim SD kartu a pak zkusim
>>>>>>>>> portovat
>>>>>>>>> ten
>>>>>>>>> ARM amulator. Je to jen hracka ale mozna by to pro demonstracni
>>>>>>>>> ucely
>>>>>>>>> mohlo
>>>>>>>>> mit smysl... A autor si s tim musel dat sakra praci tak uz jen
>>>>>>>>> proto
>>>>>>>>> ;-)
>>>>>>>>>
>>>>>>>>> Dne 22. 3. 2013 21:21, Zdeněk Aster napsal(a):
>>>>>>>>>
>>>>>>>>> No tak pokud by jste měl praxi s osmibitu treba ATARI, tak staci na
>>>>>>>>> nejaky
>>>>>>>>> port, si udelat ovladani nejakeho horniho dratu treba nejake A15, a
>>>>>>>>> tu
>>>>>>>>> tvrde
>>>>>>>>> drzet v nule a v procesoru, pak adresujete A10 v jednicce a
>>>>>>>>> fyzicky
>>>>>>>>> jste
>>>>>>>>> dole
>>>>>>>>> v pameti, No a kdyz to deaktivujete tak mate normalni prostor, jen
>>>>>>>>> u
>>>>>>>>> osmibitu pri 64KBytech to melo smysl, kdyz vam 16kB vzala ROMka,
>>>>>>>>> tady to je zbytecna komplikace....
>>>>>>>>>
>>>>>>>>> Zdenek Aster
>>>>>>>>>
>>>>>>>>> ---------- Původní zpráva ----------
>>>>>>>>> Od: Jaroslav Buchta <jaroslav.buchta na hascomp.cz>
>>>>>>>>> Datum: 22. 3. 2013
>>>>>>>>> Předmět: Re: SDRAM - lze nezapojit A12 (spojit s A11) ?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Tak po dennim hrani si FUNGUJE, operace zapsani nebo vycteni
>>>>>>>>> (kontroly)
>>>>>>>>> cele pameti 16MB trva cca 15sec, to ujde a jeste asi pujdou zkratit
>>>>>>>>> nektere casy. Docela hezky broucek ATXMEGA64A1, ze to podporuje ;-)
>>>>>>>>> Jen takova otazka - na prvnich 12kB co je schovanych pod interni
>>>>>>>>> oblasti
>>>>>>>>> (IO, EEPROM, SRAM) se asi nijak nedostanu, co?
>>>>>>>>> A vecer mam na hrani SD kartu ;-)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dne 20. 11. 2012 8:02, Jaroslav Buchta napsal(a):
>>>>>>>>>>
>>>>>>>>>> No ja bych to chtel nacpat na tohle
>>>>>>>>>> http://www.atmel.com/tools/XMEGA-A1XPLAINED.aspx a zprovoznit
>>>>>>>>>> tohle
>>>>>>>>>> http://dmitry.co/index.php?p=./04.Thoughts/07.%20Linux%20on%208bit
>>>>>>>>>> Problem je, ze 8MB co na desce je asi nestaci. Takze radsi
>>>>>>>>>> propojit,
>>>>>>>>>> ale IMHO je to jedno. Adresace refresh je stejne autonomni, mode
>>>>>>>>>> registr nepouziva tyhle vyssi adresy (jsou nulove) a jinak se take
>>>>>>>>>> snad nepouzivaji. Cili bych mohl adesovat jen pulku radku, jinak
>>>>>>>>>> by
>>>>>>>>>> se
>>>>>>>>>> IMHO nemelo nic stat. Vyzkousime, uvidime ;-)
>>>>>>>>>>
>>>>>>>>>> Dne 20.11.2012 7:52, j s napsal(a):
>>>>>>>>>>>
>>>>>>>>>>> Bol by problem supnut to niekam na zem alebo Vdd? Na doske s
>>>>>>>>>>> SDRAM
>>>>>>>>>>> urcite mate poriadny groundplane, zem musi byt vsade :)
>>>>>>>>>>> Inak by spojenie s A11 nemalo robit problem.
>>>>>>>>>>>
>>>>>>>>>>> 2012/11/20 Jaroslav Buchta <jaroslav.buchta na hascomp.cz>:
>>>>>>>>>>>>
>>>>>>>>>>>> Jde mi o pripojeni 32MB pameti ( K4S560432B ) k ATXMEGA A1,
>>>>>>>>>>>> ktery
>>>>>>>>>>>> ma jen 12
>>>>>>>>>>>> adresovych vodicu, pamet 13 pro RAS, CAS se vejde. Nejlepe by to
>>>>>>>>>>>> slo
>>>>>>>>>>>> asi
>>>>>>>>>>>> spojit s pinem A11 ktery je vedle. IMHO se nestane nic jineho,
>>>>>>>>>>>> nez,
>>>>>>>>>>>> ze budu
>>>>>>>>>>>> mit jen 16MB k dispozici, ale treba nekoho napadne nejaky
>>>>>>>>>>>> zadrhel.
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>>> Hw-list na list.hw.cz
>>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>>> Hw-list na list.hw.cz
>>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>>> Hw-list na list.hw.cz
>>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>>
>>>>>> _______________________________________________
>>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>>> Hw-list na list.hw.cz
>>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> HW-list mailing list - sponsored by www.HW.cz
>>>>> Hw-list na list.hw.cz
>>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>>
>>>> _______________________________________________
>>>> HW-list mailing list - sponsored by www.HW.cz
>>>> Hw-list na list.hw.cz
>>>> http://list.hw.cz/mailman/listinfo/hw-list
>>>
>>>
>>> _______________________________________________
>>> HW-list mailing list - sponsored by www.HW.cz
>>> Hw-list na list.hw.cz
>>> http://list.hw.cz/mailman/listinfo/hw-list
>>
>> _______________________________________________
>> HW-list mailing list - sponsored by www.HW.cz
>> Hw-list na list.hw.cz
>> http://list.hw.cz/mailman/listinfo/hw-list
>
>
> _______________________________________________
> HW-list mailing list - sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
Další informace o konferenci Hw-list