summaryrefslogtreecommitdiffstats
path: root/src/local.c
AgeCommit message (Collapse)AuthorFilesLines
2021-05-02local: Fix flashing and dumping kernel images with "NOLO img" headerPali Rohár1-10/+25
"NOLO img" header (instead of "NOLO!img" header) is used on older devices.
2021-05-01local: Fix reading kernel size when dumping imagePali Rohár1-1/+2
2021-05-01local: Respect -s (simulate) flag for dump -e operationPali Rohár1-8/+20
2021-05-01local: Implement local flashing via nandwritePali Rohár1-8/+162
2021-05-01local: Rename nanddump structures to just nandPali Rohár1-22/+22
They can be used also for other nand commands like nandwrite.
2021-05-01local: Parse real kernel size from NOLO!img header when dumping kernel imagePali Rohár1-36/+64
Kernel image is prepended with 2kB header with NOLO!img magic and contains size of the kernel image. 0xFFFF until now just skipped this header. With this change is reads from it real kernel image size and correctly truncate final dumped image for 0xFFFF -e/-E dump operation.
2021-05-01local: Fix calling nanddumpPali Rohár1-2/+2
In last 15 years nanddump changed its command line arguments. Argument -b (omit bad blocks) was completely removed and argument -o (omit oob data) changed its meaning to "include" oob data. So for compatibility with all nanddump versions, do not use argument -b and instead of -o use argument --omitoob which is present in all nanddump versions and has same meaning to omit oob data. This change should fix dumping firmware files on devices with recent versions of nanddump.
2016-12-24cal: cal_read_block allocate memoryPali Rohár1-1/+1
2016-12-17all: Fix printing fsblkcnt_t and off_t typesPali Rohár1-1/+1
2016-01-10local: Call nanddump without -i paramPali Rohár1-2/+2
Param -i was removed in recent versions of mtd-utils. And in older versions it did nothing.
2014-11-26local: Fix argument for mmap/munmapPali Rohár1-2/+2
2014-11-26local: Enable N900 code only for ARM and enable Linux code only on LinuxPali Rohár1-1/+16
2014-11-21local: Ignore '.' and '..' when listing directoryPali Rohár1-0/+3
2014-11-21local: Use new disk functionsPali Rohár1-91/+66
2014-10-19all: Replace strlen() call on const string with sizeof()-1Pali Rohár1-7/+7
2014-10-19local: Check return value of snprintfPali Rohár1-4/+8
2014-09-29local: Fix memory corruptionsPali Rohár1-3/+3
2014-06-19local: Fix truncating filePali Rohár1-0/+4
2014-05-10all: Fix typo0.6Pali Rohár1-2/+2
2013-09-20local: Fix searching for MyDocs mmc devicePali Rohár1-22/+60
Device name in /sys/block/ could not be same as in /dev/ if udev renaming it. And this is real problem on Maemo without special kernel patch when device booting with inserted SD card. So read major and minor numbers from /sys/ and find coresponding device in /dev/. These two numbers will be same after renaming device too.
2013-09-07local: Rename macro local_cal_store to local_cal_readcopyPali Rohár1-11/+11
2013-04-21local: Fix filename for local mmc dumpPali Rohár1-1/+1
2013-04-21local: Simplify nanddump codePali Rohár1-18/+27
2013-04-21local: Add nanddump table for RX-44 and RX-48Pali Rohár1-0/+9
2013-04-07local: Fix compile warning: declared with attribute warn_unused_resultPali Rohár1-2/+4
2013-02-01local: Fix initfs nand partition which is without NOLO header, rename ↵Pali Rohár1-5/+5
variable nanddump_n900 to nanddump_rx51
2012-11-24local: Read from CAL also overwritten hw revision0.6-beta1Pali Rohár1-3/+15
2012-11-24local: Use disk_dump_raw for dumping mmc image, use linux sysfs for finding ↵Pali Rohár1-12/+104
MyDocs device
2012-11-24local: Fix default value for usb_host_mode and root_device, fix align for ↵Pali Rohár1-5/+15
mmc, remove empty dumps
2012-11-24local: Use in-tree CAL parserPali Rohár1-95/+108
2012-11-23local: Fix image dumping (now dumping on N900 working)Pali Rohár1-19/+92
2012-11-23local: Fix device detectionPali Rohár1-17/+7
2012-11-21local: Do not call local_init more timesPali Rohár1-1/+8
2012-11-20local: Fix unused parameter warningsPali Rohár1-0/+12
2012-11-20local: Fix return valuesPali Rohár1-0/+25
2012-11-20local: Fix condition in local_dump_imagePali Rohár1-2/+2
2012-11-20local: Implement local_dump_imagePali Rohár1-3/+67
2012-11-20Change dump_image APIPali Rohár1-1/+1
2012-11-15Added code for local on device operationsPali Rohár1-0/+317