pHilipp Zabel <[EMAIL PROTECTED]> írta: > On 11/28/06, sza2 <[EMAIL PROTECTED]> wrote: > > Hello All, > > > > I tried to write /dev/mtdblockX (as root), but it was > > unsuccessful (the system is on CF, sdg's bootloader and > > kernel stored in the internal flash). > > > > First I used dd if=somefile.bin of=/dev/mtdblock0. Result: > > dd: /dev/mtdblock0: Operation not pemitted. > > > > Than I installed mtd-utils. > > > > flash_info /dev/mtdblock0 -> [no response] > > > > flash_unlock /dev/mtdblock0 -> Could not get MTD device info > > from /dev/mtdblock0 > > > > flash_erase /dev/mtdblock0 -> Erase Total 1 Units (but there > > is no change in flash content) > > > > flash_eraseall /dev/mtdblock0 -> flash_eraseall: > > /dev/mtdblock 0: unable to get MTD device info > > > > mtd_debug read /dev/mtdblock0 0 1000 test.bin -> [seems to > > be OK] > > > > mtd_debug erase /dev/mtdblock0 0 1000 -> MEMERASE: > > Inappropriate ioctl for device > > > > mtd_debug write /dev/mtdblock0 0 1000 test.bin -> > > file_to_flash: write, size 0x3e8, n 0x3e8 write(): Operation > > not permitted > > > > Is there a way to write the flash somehow? > > Why would you want to trash the bootloader?
Of course not:-) > mtdblock0 is write-protected (never unlocked), look However you mentioned bootloader is fit in 256k. But mtdblock0 is 1MB. Is the remaining 768k is writable? Anyway I just ask these silly questions as Linux works better if I boot it natively than run from WM. First I planed to rewrite mtdblock0 with the WM image part to check what happen after Linux reboots. > at drivers/mdt/maps/hx4700-flash.c > maps/hx4700-flash.c > > regards > Philipp > _______________________________________________________ Váltson egyszerűen, olcsóbb kötelezőre! http://www.biztositas.hu/origo/gfb - a kötelező megoldás. _______________________________________________ Hx4700-port mailing list [email protected] https://www.handhelds.org/mailman/listinfo/hx4700-port
