ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Вторник
2 июля
226335 Топик полностью
ZED“ (07.12.2010 17:48, просмотров: 1) ответил ZED“ на Помогите поставить Linux на MMNET1001.
В MMNET-CD нашел скрипт для своего устройства, но там все льется в NandFlash. Вот код скрипта: set bootstrapFile "AT91Boot_nandflash_MMnet1000.bin" set ubootFile "u-boot_nandflash.bin" set ubootEnvFile "uboot-env-prog.bin" ## NandFlash Mapping set bootStrapAddr 0x00000000 set ubootAddr 0x00040000 set ubootEnvAddr 0x00080000 # u-boot variable set kernelUbootAddr 0x00200000 set kernelLoadAddr 0x22000000 puts "-I- === Initialize the NAND access ===" NANDFLASH::Init #puts "-I- === Erase all the NAND flash blocs and test the erasing ===" #NANDFLASH::EraseAllNandFlash puts "-I- === Load the bootstrap: nandflash_at91sam9-ek in the first sector ===" NANDFLASH::sendBootFile $bootstrapFile puts "-I- === Load the u-boot in the next sectors ===" send_file {NandFlash} "$ubootFile" $ubootAddr 0 puts "-I- === Load the u-boot environment variables ===" send_file {NandFlash} "$ubootEnvFile" $ubootEnvAddr 0