9
0
Fork 0
barebox/commands
Alexander Shiyan 3f0642d383 commands: spi: Fix spi read procedure
Buffer for RX is set incorrectly.

barebox@Phytec phyCORE-i.MX27:/  spi -r 128 -v
device config
    bus_num       = 0
    max_speed_hz  = 1000000
    chip_select   = 0
    mode          = 0x0
    bits_per_word = 8

wrote 0 bytes
00000000:
read 128 bytes
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
unable to handle paging request at address 0x4dffd3d0
pc : [<a7f05ec4>]    lr : [<a7f05ebc>]
sp : a7fff890  ip : a7fff860  fp : a7f68820
r10: a6ffe9bc  r9 : 00000000  r8 : 00000001
r7 : a6ffe9ec  r6 : a6f00000  r5 : a6ffe9ec  r4 : a6ffe9e4
r3 : a6ffe9e4  r2 : a6ffe9e5  r1 : a6ffe9e4  r0 : 4dffd3cc
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
...

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-07-15 11:05:24 +02:00
..
Kconfig Merge branch 'for-next/memtest' 2013-07-01 09:37:37 +02:00
Makefile commands: add new memtest command 2013-06-08 15:00:55 +02:00
automount.c commands: automount: Added help string about "-d" option 2013-02-18 09:19:05 +01:00
barebox-update.c Add in-system barebox update infrastructure 2012-10-17 20:23:41 +02:00
basename.c Add basename command 2012-06-30 16:53:59 +02:00
bootm.c bootm: factor out code to make it usable from C 2013-06-19 22:57:39 +02:00
cat.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
cd.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
clear.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
clk.c commands: Add clk commands 2012-10-04 15:19:55 +02:00
cp.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
crc.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
detect.c detect command: Add -a option to detect all devices 2013-06-21 07:42:36 +02:00
dfu.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
digest.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
dirname.c dirname: add -V option to return only path related to the mountpoint 2012-09-05 03:22:14 +08:00
echo.c Remove a redundant line. 2013-06-03 09:26:26 +02:00
edit.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
exec.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
export.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
false.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
filetype.c add filetype command support 2012-10-30 15:42:39 +01:00
flash.c commands: flash: add missing newlines to error messages 2012-12-14 08:43:44 +01:00
global.c Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
go.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
gpio.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
help.c cosmetic: improve command list display 2012-10-12 10:52:53 +02:00
i2c.c commands: i2c: change 0X to 0x 2013-04-09 09:01:28 +02:00
insmod.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
iomem.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
led.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
let.c commands: add let command which supports proper arithmetic 2013-01-09 10:32:54 +01:00
linux16.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
linux_exec.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ln.c command: add ln support 2012-09-05 03:22:14 +08:00
loadb.c commands: remove old Y-Modem implementation 2012-11-12 09:35:53 +01:00
loadenv.c move prototypes for envfs_* to envfs.h 2013-01-20 16:31:51 +01:00
loads.c commands: remove old Y-Modem implementation 2012-11-12 09:35:53 +01:00
loadxy.c commands: remove old Y-Modem implementation 2012-11-12 09:35:53 +01:00
login.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ls.c ls command: call stat() only when necessary 2012-12-03 11:23:25 +01:00
lsmod.c complete: add empty complete support 2012-04-30 20:37:40 +08:00
magicvar.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
md.c memory commands: separate into one file per command 2013-04-17 13:36:31 +02:00
mem.c commands/mem.c: drop non used DEVMEM 2013-05-08 07:16:40 +02:00
memcmp.c memory commands: separate into one file per command 2013-04-17 13:36:31 +02:00
memcpy.c memory commands: separate into one file per command 2013-04-17 13:36:31 +02:00
meminfo.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
memset.c memory commands: separate into one file per command 2013-04-17 13:36:31 +02:00
memtest.c commands: add new memtest command 2013-06-08 15:00:55 +02:00
menu.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
miitool.c add 'miitool' command to view media-independent interface status 2012-10-30 10:24:12 +01:00
mkdir.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
mm.c Add memory modify command (mm) 2013-04-17 13:37:14 +02:00
mount.c mount: add compatibility to old mount command 2012-11-02 21:26:29 +01:00
msleep.c commands: add msleep command 2012-06-30 12:47:04 +02:00
mw.c memory commands: separate into one file per command 2013-04-17 13:36:31 +02:00
nand.c nand command: check for <dev> directly after option parsing 2013-03-04 11:00:33 +01:00
nandtest.c nandtest: fix length calculation 2013-02-20 08:23:30 +01:00
net.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
of_node.c OF: base: sync of_find_node_by_path with linux OF API 2013-06-20 21:20:50 +02:00
of_property.c OF: base: sync of_find_node_by_path with linux OF API 2013-06-20 21:20:50 +02:00
oftree.c OF: base: sync of_find_node_by_path with linux OF API 2013-06-20 21:20:50 +02:00
partition.c remove unused debug Kconfig options 2013-06-23 21:37:12 +02:00
passwd.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
poweroff.c add 'poweroff' command 2012-06-30 12:47:25 +02:00
printenv.c environment variables: use linux list 2012-10-30 10:24:12 +01:00
pwd.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
readline.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
readlink.c command: add readlink support 2012-09-05 03:22:14 +08:00
reginfo.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
reset.c commands: reset: add shutdown_barebox() before reset_cpu() 2013-01-30 16:03:51 +01:00
rm.c rm: implement -r 2012-11-29 20:21:29 +01:00
rmdir.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
saveenv.c move prototypes for envfs_* to envfs.h 2013-01-20 16:31:51 +01:00
setenv.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
sleep.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
spi.c commands: spi: Fix spi read procedure 2013-07-15 11:05:24 +02:00
splash.c splash: fix background color support 2013-03-14 07:16:20 +01:00
stddev.c fs: fix standard zero, full devices 2012-07-04 08:38:22 +02:00
test.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
tftp.c commands/tftp: use debug() for debug output 2013-04-03 17:22:11 +02:00
time.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
timeout.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
trigger.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
true.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ubi.c ubimkvol: Typo fix 2013-04-22 09:15:07 +02:00
ubiformat.c ubiformat: check file size 2013-06-24 21:43:05 +02:00
uimage.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
umount.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
uncompress.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
usb.c usb: move scanned status into core 2013-06-21 07:41:32 +02:00
usbserial.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
version.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
wd.c Add a simple watchdog framework 2012-06-29 15:16:34 +02:00