- Nov 28, 2014
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This is the new IPC mechanism (not RPC) to pass port status and other status-like information among processes, to avoid lenghty RPC calls. Each WR process has 32k of shared space. Thanks to Adam for some fixes. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Alessandro Rubini authored
This changes the kernel configuration, in two ways: 1- It uses CONFIG_NOHZ, which enables Hight Resolution Timers Unfortunately this has no effect, as the timeevent device for AT91 doesn't support oneshot mode. This means that if you usleep(100) you'll wait 10ms. Thus, we can't remove the busy-looping in libwr/util.c . This is the output of my libstamp sample program: 0.003 -- stamping overhead 12.243 -- usleep 1 usec 10.005 -- usleep 1 usec 9.963 -- usleep 2 usec 10.037 -- usleep 5 usec 10.083 -- usleep 10 usec 9.905 -- usleep 100 usec 10.394 -- usleep 1000 usec 19.775 -- usleep 10000 usec 109.925 -- usleep 100000 usec 2- It moves CONFIG_HZ from 100 to 1000. Thus, we have 1000 timer interrupts per second. This means, in practice, that if you usleep(100) you wait 1ms. This costs around 2% of CPU power (measured by running a cpu-busy program before and after the change, in both cases after killing...
-
Alessandro Rubini authored
This updates binaries/wrboot-* to be more commented and complete. It also adds wrboot-install and wrboot-nand, that I personally used. As a side effect, "mem=64m" is removed by all command lines, as it has been properly autodetected for a few years now, so it is not needed any more. Documentation is updated too. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 20, 2014
-
-
Alessandro Rubini authored
-
Also, fix Makefiles accordingly. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Nov 19, 2014
-
-
Alessandro Rubini authored
This commit makes no changes, as shown by "git diff -w" before committing, but blank spaces at end-of-line make my editor scream (because I'm pedanting in not pushing those to the kernel). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The header is not private to the library, wr_phytool uses it. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The header is not private to the library: it is used by elsewhere. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 18, 2014
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
termio setup is restored at exit; si save it initially even if we are not going to modify it. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
For unknown reasons, setting stdin to nonblocking mode has global effects, and thus every later command will get EAGAIN instead of a blocking read: vi: can't read user input wrs-192.168.16.242#cat cat: read error: Resource temporarily unavailable But wr_mon doesn't need non-blocking mode, because it uses poll on stdin. So instead of fixing, remove the source of the bug. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 13, 2014
-
-
Alessandro Rubini authored
-
There are some conflicts that prevent a complete clean-up: functions with the same name are defined in differnt palces. This applies to the "halexp" things (hal export), for historical reasons: the function being exported and the one that calls RPC have the same name but different implementations.
-
- Oct 17, 2014
-
-
Adam Wujek authored
Following functions were made static: pwm_configure_fpga pwm_configure_pin shw_init_i2c_sensors shw_pwm_speed shw_pwm_update_timeout tmp100_read_temp tmp100_read_reg tmp100_write_reg
-
Adam Wujek authored
-
Adam Wujek authored
-
Adam Wujek authored
-
Adam Wujek authored
removed: shw_pio_configure_all kept for debugging: shw_pio_toggle_pin
-
Adam Wujek authored
remove: shw_i2c_io_get_bus kept for debugging purposes: shw_i2c_io_scan
-
Adam Wujek authored
Made static: i2c_fpga_reg_scan i2c_fpga_reg_transfer
-
Adam Wujek authored
Made static: i2c_bitbang_scan i2c_bitbang_transfer mi2c_pin_out
-
Adam Wujek authored
Made static: hwiu_read_word
-
Adam Wujek authored
following functions were removed: ptpd_netif_calibration_pattern_enable ptpd_netif_calibration_pattern_disable ptpd_netif_calibrating_disable ptpd_netif_calibrating_enable ptpd_netif_calibrating_poll ptpd_netif_extsrc_detection ptpd_netif_adjust_phase ptpd_netif_adjust_in_progress ptpd_netif_enable_timing_output ptpd_netif_enable_phase_tracking ptpd_netif_get_hw_addr ptpd_netif_get_ifName ptpd_netif_get_msec_tics ptpd_netif_get_port_state ptpd_netif_locking_disable ptpd_netif_locking_enable ptpd_netif_locking_poll ptpd_netif_read_calibration_data ptpd_netif_select --function ptpd_netif_get_dmtd_phase was kept since it is commented as for debugging --function ptpd_netif_close_socket even not used, should be preserved, because ptpd_netif_create_socket is available
-
Adam Wujek authored
-
Adam Wujek authored
NOTE: libwr builds, but not other userspace apps
-
Adam Wujek authored
remove remainings of building: --i2cscan --dbload
-