Hi scut_ak,
> My flash is AM29LV160DB and it locates in 0x800000 ,how can I choose a flash drive for it.
The best bet is to copy an existing driver and make whatever modifications you like. The one
I would suggest is board/mvblue/flash.c -- you'll have to grab it from the u-boot project since it's
not included in the sources from psyent (because it's not a nios board). The mvblue flash driver
includes support for the 160D (and a few others).
I will be updating the psyent sources soon and hope to have the CFI driver fixed to work
with the avalon bus (and Nios II configurations with dcache). There has been alot of churn in
the u-boot CFI implementation over the past several months, but things finally seem stable.
Hopefully, the CFI driver will eliminate the need for any custom flash drivers -- so it will be
easier to port u-boot to a custom board.
I'll make a post once I have things ready.
Regards,
--Scott