Pali Rohár
f144067634
local: Respect -s (simulate) flag for dump -e operation
2021-05-01 20:39:44 +02:00
Pali Rohár
6eb58dcccb
local: Implement local flashing via nandwrite
2021-05-01 20:09:40 +02:00
Pali Rohár
38f83f8db4
local: Rename nanddump structures to just nand
...
They can be used also for other nand commands like nandwrite.
2021-05-01 18:27:32 +02:00
Pali Rohár
342dc610b3
local: Parse real kernel size from NOLO!img header when dumping kernel image
...
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-01 18:20:13 +02:00
Pali Rohár
67427daf17
local: Fix calling nanddump
...
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.
2021-05-01 15:34:22 +02:00
Pali Rohár
117d0bb2d0
cal: cal_read_block allocate memory
2016-12-24 18:06:57 +01:00
Pali Rohár
e36423e8c2
all: Fix printing fsblkcnt_t and off_t types
2016-12-17 01:52:50 +01:00
Pali Rohár
05f7048580
local: Call nanddump without -i param
...
Param -i was removed in recent versions of mtd-utils.
And in older versions it did nothing.
2016-01-10 12:33:22 +01:00
Pali Rohár
33f1dc8b55
local: Fix argument for mmap/munmap
2014-11-26 16:53:08 +01:00
Pali Rohár
5633a06710
local: Enable N900 code only for ARM and enable Linux code only on Linux
2014-11-26 16:32:36 +01:00
Pali Rohár
5d20747c30
local: Ignore '.' and '..' when listing directory
2014-11-21 16:31:13 +01:00
Pali Rohár
e30e08136a
local: Use new disk functions
2014-11-21 15:02:10 +01:00
Pali Rohár
f0712d5b23
all: Replace strlen() call on const string with sizeof()-1
2014-10-19 20:23:21 +02:00
Pali Rohár
a8986bf631
local: Check return value of snprintf
2014-10-19 20:18:02 +02:00
Pali Rohár
4356b2124e
local: Fix memory corruptions
2014-09-29 00:43:54 +02:00
Pali Rohár
46750e99d0
local: Fix truncating file
2014-06-19 13:27:34 +02:00
Pali Rohár
f898ac4411
all: Fix typo
2014-05-10 22:39:47 +02:00
Pali Rohár
17dd99f368
local: Fix searching for MyDocs mmc device
...
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-20 18:12:28 +02:00
Pali Rohár
1b393d1e41
local: Rename macro local_cal_store to local_cal_readcopy
2013-09-07 22:16:47 +02:00
Pali Rohár
79832d9289
local: Fix filename for local mmc dump
2013-04-21 17:52:14 +02:00
Pali Rohár
1c20e5ff5f
local: Simplify nanddump code
2013-04-21 16:36:30 +02:00
Pali Rohár
fbd23222b1
local: Add nanddump table for RX-44 and RX-48
2013-04-21 16:34:43 +02:00
Pali Rohár
a1febdd2ea
local: Fix compile warning: declared with attribute warn_unused_result
2013-04-07 14:39:26 +02:00
Pali Rohár
1eef797e29
local: Fix initfs nand partition which is without NOLO header, rename variable nanddump_n900 to nanddump_rx51
2013-02-01 13:19:35 +01:00
Pali Rohár
4f6eb6e936
local: Read from CAL also overwritten hw revision
2012-11-24 15:42:34 +01:00
Pali Rohár
246394d25b
local: Use disk_dump_raw for dumping mmc image, use linux sysfs for finding MyDocs device
2012-11-24 11:09:46 +01:00
Pali Rohár
6ecc3e2a80
local: Fix default value for usb_host_mode and root_device, fix align for mmc, remove empty dumps
2012-11-24 11:08:25 +01:00
Pali Rohár
2e78262c10
local: Use in-tree CAL parser
2012-11-24 01:01:53 +01:00
Pali Rohár
9087b564ba
local: Fix image dumping (now dumping on N900 working)
2012-11-23 22:09:10 +01:00
Pali Rohár
8084f68b50
local: Fix device detection
2012-11-23 22:08:45 +01:00
Pali Rohár
288726981a
local: Do not call local_init more times
2012-11-21 14:14:21 +01:00
Pali Rohár
a6ec2b36c4
local: Fix unused parameter warnings
2012-11-20 21:51:21 +01:00
Pali Rohár
3d7b15e30b
local: Fix return values
2012-11-20 21:38:11 +01:00
Pali Rohár
912ec5210e
local: Fix condition in local_dump_image
2012-11-20 21:35:19 +01:00
Pali Rohár
01ec9928f9
local: Implement local_dump_image
2012-11-20 21:24:02 +01:00
Pali Rohár
3f96851407
Change dump_image API
2012-11-20 20:42:17 +01:00
Pali Rohár
e98891e52d
Added code for local on device operations
2012-11-15 01:39:18 +01:00