aboutsummaryrefslogtreecommitdiffstats
path: root/host/apps
diff options
context:
space:
mode:
Diffstat (limited to 'host/apps')
-rwxr-xr-xhost/apps/omap_debug/fetch-kernel.sh2
-rwxr-xr-xhost/apps/omap_debug/fetch-module.sh4
-rw-r--r--host/apps/omap_debug/usrp-e-fpga-rw.c26
3 files changed, 27 insertions, 5 deletions
diff --git a/host/apps/omap_debug/fetch-kernel.sh b/host/apps/omap_debug/fetch-kernel.sh
index f25f139fa..ce420f3d2 100755
--- a/host/apps/omap_debug/fetch-kernel.sh
+++ b/host/apps/omap_debug/fetch-kernel.sh
@@ -1,7 +1,7 @@
if [ $GHQ ]; then
scp $GHQ_USER@astro:/workspace/usrp1-e-dev/kernel_usrp/arch/arm/boot/uImage /media/mmcblk0p1/uImage
else
- scp balister@192.168.1.167:src/git/kernel_usrp/arch/arm/boot/uImage /media/mmcblk0p1/uImage
+ scp balister@192.168.1.10:src/git/kernel_usrp/arch/arm/boot/uImage /media/mmcblk0p1/uImage
fi
sync
diff --git a/host/apps/omap_debug/fetch-module.sh b/host/apps/omap_debug/fetch-module.sh
index 0957ad7b4..e23289050 100755
--- a/host/apps/omap_debug/fetch-module.sh
+++ b/host/apps/omap_debug/fetch-module.sh
@@ -1,6 +1,6 @@
if [ $GHQ ]; then
- scp $GHQ_USER@astro:/workspace/usrp1-e-dev/kernel_usrp/drivers/misc/usrp_e.ko /lib/modules/2.6.34-rc1/kernel/drivers/misc
+ scp $GHQ_USER@astro:/workspace/usrp1-e-dev/kernel_usrp/drivers/misc/usrp_e.ko /lib/modules/2.6.33/kernel/drivers/misc
else
- scp balister@192.168.1.167:src/git/kernel_usrp/drivers/misc/usrp_e.ko /lib/modules/2.6.33-rc3/kernel/drivers/misc
+ scp balister@192.168.1.10:src/git/kernel_usrp/drivers/misc/usrp_e.ko /lib/modules/2.6.33-rc3/kernel/drivers/misc
fi
sync
diff --git a/host/apps/omap_debug/usrp-e-fpga-rw.c b/host/apps/omap_debug/usrp-e-fpga-rw.c
index f3fa1499a..6b585913e 100644
--- a/host/apps/omap_debug/usrp-e-fpga-rw.c
+++ b/host/apps/omap_debug/usrp-e-fpga-rw.c
@@ -69,7 +69,7 @@ static void *read_thread(void *threadid)
}
if (rx_data->flags & RB_OVERRUN)
- printf("RX ring buffer overrun occurred at packet %d\n", rx_pkt_cnt);
+ printf("O");
// for (i = 0; i < 10; i++)
// printf(" %d", p->data[i]);
@@ -93,7 +93,7 @@ static void *read_thread(void *threadid)
static void *write_thread(void *threadid)
{
- int seq_number, i, cnt;
+ int seq_number, i, cnt, tx_pkt_cnt;
struct usrp_transfer_frame *tx_data;
struct pkt *p;
@@ -115,8 +115,25 @@ static void *write_thread(void *threadid)
printf("tx_data->len = %d\n", tx_data->len);
seq_number = 1;
+ tx_pkt_cnt = 0;
while (1) {
+
+ tx_pkt_cnt++;
+ if (tx_pkt_cnt == 512) {
+ printf(".");
+ fflush(stdout);
+ }
+ if (tx_pkt_cnt == 1024) {
+ printf("'");
+ fflush(stdout);
+ }
+ if (tx_pkt_cnt == 1536) {
+ printf(":");
+ fflush(stdout);
+ tx_pkt_cnt = 0;
+ }
+
// printf("tx flags = %X, len = %d\n", tx_data->flags, tx_data->len);
p->seq_num = seq_number++;
p->checksum = calc_checksum(p);
@@ -134,6 +151,9 @@ int main(int argc, char *argv[])
long int t;
int fpga_config_flag ,decimation;
struct usrp_e_ctl16 d;
+ struct sched_param s = {
+ .sched_priority = 1
+ };
if (argc < 4) {
printf("%s t|w|rw decimation data_size\n", argv[0]);
@@ -163,6 +183,8 @@ int main(int argc, char *argv[])
sleep(1); // in case the kernel threads need time to start. FIXME if so
+ sched_setscheduler(0, SCHED_RR, &s);
+
if (fpga_config_flag & (1 << 14)) {
if (pthread_create(&rx, NULL, read_thread, (void *) t)) {
printf("Failed to create rx thread\n");