But one question: how is freetz_hotplug.patch applied?
something like: patch -p1 < freetz_hotplug.patch
execute
Code:
patch -p0 <freetz_hotplug.patch
But one question: how is freetz_hotplug.patch applied?
something like: patch -p1 < freetz_hotplug.patch
patch -p0 <freetz_hotplug.patch
the new hotplug chain would, when it calls the AVM hotplug handler, probably need to stall (or queue) events until the AVM hotplug routine returns.
$ echo /sys/block/sda/device/scsi_disk:* | sed 's/[^:]*://;s/:/ /g'
0 0 0 0
# | | | +-- lun \
# | | +---- id > not sure of the order...
# | +------ channel /
# +-------- host
$ echo >/sys/block/sda/device/delete
$ echo 0 0 0 >/sys/class/scsi_host/host0/scan
In the 0.5.2 patch the selectability of the new hotplug chain depends on FREETZ_TYPE_FON_WLAN_7270. I've a 7170, is there any reason to assume the patch would not work with the 7170, is there anything very specific for the 7270?
As soon as the usbcore (7270 uses usbcore and musb_hdrc) is loaded the hotplug events are generated and the partition should automatically create the device nodes and subsequently mount the partition.Because your patch removes (comments out) the /dev/sd* entries in the device.table I cannot (manually) mount /dev/sda1 where I write usbroot filesystem below a subdirectory when a new firmware has been compiled.
Please have a look at his signature. He doesn't use the 7270, he has "only" the 7170 and hast none of your usb-modules.
Gotta put that on my listusbroot loads the modules for itself and disables hotplug!
Greets Oliver
$ bzip2 -cd <patch> | patch -p0
$ tar jxvf <tar file>
make menuconfig
$ make busybox-dirclean
$ make e2fsprogs-dirclean
$ make hotplug-dirclean
$ make hotplug-uninstall
$ make
$ cp /lib/hotplug/mount/unrecognized /var/tmp/<newfs>.mount
$ mount -o bind /var/tmp/<newfs>.mount /lib/hotplug/mount/unrecognized
#!/bin/false
# vim: se ft=sh:
# this is actually a development hook
# cp /lib/hotplug/mount/unrecognized /var/tmp/newfs.mount
# mount -o bind /var/tmp/newfs.mount /lib/hotplug/mount/unrecognized
case "$FSTYPE" in
*)
log_error "unrecognized filesystem type '$FSTYPE' on '$NODEPATH'"
;;
esac
Enhancement for Additional Filesystem Types:
A development hook for mounts is included in the file make/hotplug/files/root/lib/mount/unrecognized. This may be exploited by copying the file to /var/tmp and subsequently binding the file to the originalThe implementation may be completed by enhancing the file internal case statement with the filesystem type as determined by blkid <path to dev node containing the new filesystem>.Code:$ cp /lib/hotplug/mount/unrecognized /var/tmp/<newfs>.mount $ mount -o bind /var/tmp/<newfs>.mount /lib/hotplug/mount/unrecognized
Filesystem support for luks and a linux-raid may be developed in this mannerCode:#!/bin/false # vim: se ft=sh: # this is actually a development hook # cp /lib/hotplug/mount/unrecognized /var/tmp/newfs.mount # mount -o bind /var/tmp/newfs.mount /lib/hotplug/mount/unrecognized case "$FSTYPE" in *) log_error "unrecognized filesystem type '$FSTYPE' on '$NODEPATH'" ;; esac
Wishing you lots of fun and if I can help, just ask...
bzip2 -cd hotplug-busybox-Config.8mb_26.patch.bz2 | patch -p0
patching file make/busybox/Config.8mb_26
Hunk #1 FAILED at 484.
1 out of 1 hunk FAILED -- saving rejects to file make/busybox/Config.8mb_26.rej
ich erhalte folgende Meldung bei Anwendung des nachfolgenden Codes:
Code:bzip2 -cd hotplug-busybox-Config.8mb_26.patch.bz2 | patch -p0 patching file make/busybox/Config.8mb_26 Hunk #1 FAILED at 484. 1 out of 1 hunk FAILED -- saving rejects to file make/busybox/Config.8mb_26.rej
Revision: 2288
Alle anderen Patches liefen durch ...
fff@fff-laptop:~/freetz-11$ bzip2 -cd hotplug-patch.bz2 | patch -p0
patching file make/Config.in
Hunk #1 FAILED at 81.
1 out of 1 hunk FAILED -- saving rejects to file make/Config.in.rej
bzip2 -cd hotplug-busybox-Config.8mb_26.patch.bz2 | patch -p0