Day: March 29, 2021

How to get i386 binaries work on Ubuntu

Probably you already executed the procedure to include i386 support to Linux:

$ sudo dpkg --add-architecture i386
$ apt-get update
$ sudo apt-get update
$ sudo apt-get install libc6-i386

Even yet your application still not running:

$ ./diehard
bash: ./diehard: No such file or directory

You can run this command to show the needed libraries:

$ objdump -p ./diehard | grep NEEDED
NEEDED libf2c.so.0
NEEDED libm.so.5
NEEDED libc.so.5

How do I submit Pull Request to NuttX

I follow these steps:

I follow these steps after creating my github fork:

$ git clone https://github.com/acassis/incubator-nuttx

$ git remote add upstream git@github.com:apache/incubator-nuttx.git

$ git pull upstream master

$ git checkout -b upstream upstream/master

$ git push origin master

Then you can create branches:

$ git checkout -b newbranchfornewfeature

$ git push -u origin newbranchfornewfeature

/* do your modifications and commits */

Before submitting the new branch I do it:

$ git checkout upstream

$ git pull

/* Now my local upstream branch synced with mainline */

Let return to my branch and rebase it:

$ git checkout newbranchfornewfeature

$ git rebase upstream

Push the commits of my branch to my github:

$ git push

Using the github interface submit the new feature to NuttX mainline.