Debug in Layerscape LS1046A

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Debug in Layerscape LS1046A

跳至解决方案
2,334 次查看
Saitama
Contributor I

I am using LS1046ARDB evalution board to build the network encryptor application, when i am try to do debug the application i found a solution at this community mentioned in below image

img.png(attach the image here)

1. I have connected my LS1046ARDB board to the internet and checked the google.com, its working.
2. Now i am trying to download the gdbserver on LS1046ARDB board but apt was not working, it show's the below error.

LS1046ARDB Board -> ~$ sudo apt-get install gdbserver
~$ E: The package lists or status file could not be parsed or opened

Is there possible to install gdbserver on NXP LS1046ARDB board and do remote debugging through aarch64-linux-gnu-gdb in host system?
If the above method is not worked means, then what is the alternate solution for remote dugging.

Thanks in advance...

0 项奖励
回复
1 解答
2,327 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please use NXP LSDK 2108 (custom based on ubuntu 20.04), there is no problem to install gdbserver, please refer to my following log on the target board.

root@localhost:~# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gdbserver
0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded.
Need to get 198 kB of archives.
After this operation, 808 kB of additional disk space will be used.
Get:1 http://us.ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 gdbserver arm64 9.2-0ubuntu1~20.04.1 [198 kB]
Fetched 198 kB in 2s (87.1 kB/s)
Selecting previously unselected package gdbserver.
(Reading database ... 58340 files and directories currently installed.)
Preparing to unpack .../gdbserver_9.2-0ubuntu1~20.04.1_arm64.deb ...
Unpacking gdbserver (9.2-0ubuntu1~20.04.1) ...
Setting up gdbserver (9.2-0ubuntu1~20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
root@localhost:~# gdbserver --version
GNU gdbserver (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
gdbserver is free software, covered by the GNU General Public License.
This gdbserver was configured as "aarch64-linux-gnu"
root@localhost:~#

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,328 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please use NXP LSDK 2108 (custom based on ubuntu 20.04), there is no problem to install gdbserver, please refer to my following log on the target board.

root@localhost:~# apt-get install gdbserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gdbserver
0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded.
Need to get 198 kB of archives.
After this operation, 808 kB of additional disk space will be used.
Get:1 http://us.ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 gdbserver arm64 9.2-0ubuntu1~20.04.1 [198 kB]
Fetched 198 kB in 2s (87.1 kB/s)
Selecting previously unselected package gdbserver.
(Reading database ... 58340 files and directories currently installed.)
Preparing to unpack .../gdbserver_9.2-0ubuntu1~20.04.1_arm64.deb ...
Unpacking gdbserver (9.2-0ubuntu1~20.04.1) ...
Setting up gdbserver (9.2-0ubuntu1~20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
root@localhost:~# gdbserver --version
GNU gdbserver (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
gdbserver is free software, covered by the GNU General Public License.
This gdbserver was configured as "aarch64-linux-gnu"
root@localhost:~#

0 项奖励
回复