paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Ubuntu 13.04 upgrade and make upload_bl failures


From: alexandre bustico
Subject: Re: [Paparazzi-devel] Ubuntu 13.04 upgrade and make upload_bl failures
Date: Sat, 29 Jun 2013 09:31:01 +0200

i have forgotten on thing, after forcing the install of a version with inferior version number, each time you will update the system, it will
reinstall newer version.

you can stop that behavior with :

sudo apt-mark hold lpc21isp


But this is an immediate workaround, we need to find a way to make that pprz packaged lpc21isp supersede ubuntu one.

Alexandre


2013/6/29 alexandre bustico <address@hidden>
It seems that after upgrade, you get ubuntu packaged regular version of lpc21isp, which is known to fail.
There is in the paparazzi ppa an 1.48 version of the tool which work.

Tor resolve you problem, you can

1/ assure that you have add the paparazzi ppa (sudo add-apt-repository ppa:paparazzi-uav/ppa)
2/ remove faulty package : apt-get remove lpc21isp
3/ install specific version : apt-get install lpc21isp=1.48-1

now, we need to find a way so that pprz version of lpc21isp will install instead ubuntu stock version.

Alexandre


2013/6/29 David Conger <address@hidden>
Hello,

I have tried redoing the steps under software installation for Linux. Also cloned a new 5.0 Git repo and recompiling. Same issue:


lpc21isp version 1.85
File sw/airborne/arch/lpc21/test/bootloader/bl.hex:
    loaded...
    converted to binary format...
    image size : 6156
Image size : 6156
Synchronizing (ESC to abort). OK
Read bootcode version: 13
2
Read part ID: LPC2148, 512 kiB ROM / 40 kiB SRAM (0x402FF25)
Will start programming at Sector 1 if possible, and conclude with Sector 0 to ensure that checksum is written last.
Erasing sector 0 first, to invalidate checksum. OK
Sector 1: .......................Error on writing block_CRC (1)
make: *** [upload_bl] Error 7
address@hidden:~/paparazzi$ ./paparazzi_version
v5.0.0_stable-16-g2c31f1e
address@hidden:~/paparazzi$

I'm dead in the water here. If I can't flash the bootloader that is a very bad thing for me. Any ideas? This all worked before upgrading. Downgrading would be a real pain on this system.

-David Conger

On Jun 28, 2013, at 02:03 PM, David Conger <address@hidden> wrote:

Hello Paparazzi World,

The other day I allowed software update to upgrade my desktop to Ubuntu 13.04. All seems ok. I can start Paparazzi Center. However when I went to program a new UmarimLiteV2 with the boot loader I get errors.

Command with output:
"address@hidden:~/paparazzi$ make upload_bl
cd sw/airborne/arch/lpc21/test/bootloader; make PAPARAZZI_SRC=/media/ppzuav/SSD64a/paparazzi PAPARAZZI_HOME=/home/ppzuav/paparazzi clean; make PAPARAZZI_SRC=/media/ppzuav/SSD64a/paparazzi PAPARAZZI_HOME=/home/ppzuav/paparazzi
rm -f usbstack.a usbhw_lpc.o usbcontrol.o usbstdreq.o usbinit.o usbdescrip.o
rm -f bl.hex bl.elf crt.o startup.o printf.o console.o bootloader.o *.lst bl.dmp bl.map
rm -f bl_ram.hex bl_ram.elf bl_ram.dmp bl_ram.map
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o usbhw_lpc.o usbhw_lpc.c
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o usbcontrol.o usbcontrol.c
usbcontrol.c: In function 'StallControlPipe':
usbcontrol.c:134:6: warning: variable 'pb' set but not used [-Wunused-but-set-variable]
usbcontrol.c:132:33: warning: unused parameter 'bEPStat' [-Wunused-parameter]
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o usbstdreq.o usbstdreq.c
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o usbinit.o usbinit.c
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o usbdescrip.o usbdescrip.c
usbdescrip.c: In function 'USBHandleDescriptor':
usbdescrip.c:60:46: warning: unused parameter 'wLangID' [-Wunused-parameter]
rm -f usbstack.a
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-ar -r usbstack.a usbhw_lpc.o usbcontrol.o usbstdreq.o usbinit.o usbdescrip.o
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-ar: creating usbstack.a
echo ".assembling"
.assembling
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -c -DPROC_ -Wa,-ahlms=crt.lst crt.S -o crt.o
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o startup.o startup.c
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o printf.o printf.c
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o console.o console.c
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc -I./ -c -W -Wall -Os -g -mcpu=arm7tdmi -mthumb-interwork -DPROC_   -c -o bootloader.o bootloader.c
echo "..linking"
..linking
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc crt.o startup.o printf.o console.o bootloader.o usbstack.a -T lpc2148-rom.ld -nostartfiles -n -o bl.elf -Wl,-Map,bl.map
echo "...copying"
...copying
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-objcopy -O ihex bl.elf bl.hex
x --syms bl.elf > bl.dmp
/bin/sh: 1: x: not found
make[1]: [app] Error 127 (ignored)
echo "..linking RAM"
..linking RAM
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-gcc crt.o startup.o printf.o console.o bootloader.o usbstack.a -T lpc2148-ram.ld -nostartfiles -n -o bl_ram.elf -Wl,-Map,bl_ram.map
echo "...copying"
...copying
/opt/paparazzi/arm-multilib/bin/arm-none-eabi-objcopy -O ihex bl_ram.elf bl_ram.hex
x --syms bl_ram.elf > bl_ram.dmp
/bin/sh: 1: x: not found
make[1]: [app_ram] Error 127 (ignored)
lpc21isp -control sw/airborne/arch/lpc21/test/bootloader/bl.hex /dev/ttyUSB0 38400 12000
lpc21isp version 1.85
File sw/airborne/arch/lpc21/test/bootloader/bl.hex:
    loaded...
    converted to binary format...
    image size : 6156
Image size : 6156
Synchronizing (ESC to abort). OK
Read bootcode version: 13
2
Read part ID: LPC2148, 512 kiB ROM / 40 kiB SRAM (0x402FF25)
Will start programming at Sector 1 if possible, and conclude with Sector 0 to ensure that checksum is written last.
Erasing sector 0 first, to invalidate checksum. OK
Sector 1: .......................Error on writing block_CRC (1)
make: *** [upload_bl] Error 7"

Any ideas? I tried recompiling (make clean && make).

Probably something simple. Just wanted to submit this for discussion.

-David Conger
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]