Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eMMC stats regression.. ;) #26

Open
RobertCNelson opened this issue Jul 29, 2021 · 4 comments
Open

eMMC stats regression.. ;) #26

RobertCNelson opened this issue Jul 29, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@RobertCNelson
Copy link

RobertCNelson commented Jul 29, 2021

beagleconfig-emmc

debian@bbb-pwr01-ser09:~$ df -h
Filesystem                      Size  Used Avail Use% Mounted on
udev                            214M     0  214M   0% /dev
tmpfs                            49M  3.5M   45M   8% /run
/dev/mmcblk0p1                   30G  4.7G   24G  17% /
tmpfs                           242M     0  242M   0% /dev/shm
tmpfs                           5.0M  4.0K  5.0M   1% /run/lock
tmpfs                           242M     0  242M   0% /sys/fs/cgroup
192.168.1.3:/var/www/html/farm  908G  490G  373G  57% /mnt/farm
tmpfs                            49M     0   49M   0% /run/user/1000
debian@bbb-pwr01-ser09:~$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0 29.8G  0 disk 
└─mmcblk0p1  179:1    0 29.8G  0 part /
mmcblk1      179:8    0  1.8G  0 disk 
mmcblk1boot0 179:16   0    1M  1 disk 
mmcblk1boot1 179:24   0    1M  1 disk 

Kinda funny screenshot..

@SAtacker
Copy link
Owner

SAtacker commented Jul 29, 2021

I guess it's time to dive deeper into C++ API vs Linux's Coreutils .
Problem: /dev/mmc* is giving the wrong size with C++ filesystem (probably related to the symlink issue)

@SAtacker
Copy link
Owner

C++ Src - Link
Relies on statvfs

@SAtacker SAtacker added the help wanted Extra attention is needed label Aug 1, 2021
@SAtacker SAtacker added this to In Progress in beagle-config Aug 1, 2021
@coderSHeE
Copy link

name: armhf build

on:
push:
branches:
- main

env:
BUILD_TYPE: Release

jobs:
armhf:
name: build-armhf
runs-on: ubuntu-latest

steps:
- name: Checkout
  uses: actions/checkout@v2
- name: Install Deps
  run: sudo apt install gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf
- name: Build
  id: armhf-artifact-download
  run: |
    cd ${{ github.workspace }}
    mkdir build
    cd build
    cmake ..  -DCMAKE_CXX_COMPILER=$(which arm-linux-gnueabihf-g++-8) \
              -DCMAKE_C_COMPILER=$(which arm-linux-gnueabihf-gcc-8) \
              -DARMHF_DEB=ON
    make -j$(nproc)
    make package
    armhf__filename__=$(echo $(ls ${{steps.armhf-artifact-download.outputs.download-path}} | grep ..armhf.deb) | tr -d '\n')
    version__name__=${armhf__filename__#*-}
    name__=$(echo ${armhf__filename__%-*} | tr -d '\n')
    trailing_=$(git rev-list --count HEAD | tr -d '\n')
    version__=$(echo ${version__name__%-*} | tr -d '\n')
    echo "name__=$name__" >> $GITHUB_ENV
    echo "version__=$version__" >> $GITHUB_ENV
    echo "armhf__filename__=$armhf__filename__" >> $GITHUB_ENV
- name: Create Release
  id: create_release
  uses: actions/create-release@v1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
      tag_name: ${{ env.version__ }}
      release_name: ${{ env.name__ }}
      draft: false
      prerelease: false
- name: Upload Release Asset
  id: upload-release-asset 
  uses: actions/upload-release-asset@v1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
   # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, 
   # which include a `upload_url`. See this blog post for more info: 
   # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps 
    upload_url: ${{ steps.create_release.outputs.upload_url }}
    asset_path: ${{ github.workspace }}/build/${{ env.armhf__filename__ }}
    asset_name: ${{ env.armhf__filename__ }}
    asset_content_type: application/vnd.debian.binary-package

@SAtacker
Copy link
Owner

name: armhf build

on: push: branches: - main

env: BUILD_TYPE: Release

jobs: armhf: name: build-armhf runs-on: ubuntu-latest

steps:
- name: Checkout
  uses: actions/checkout@v2
- name: Install Deps
  run: sudo apt install gcc-8-arm-linux-gnueabihf g++-8-arm-linux-gnueabihf
- name: Build
  id: armhf-artifact-download
  run: |
    cd ${{ github.workspace }}
    mkdir build
    cd build
    cmake ..  -DCMAKE_CXX_COMPILER=$(which arm-linux-gnueabihf-g++-8) \
              -DCMAKE_C_COMPILER=$(which arm-linux-gnueabihf-gcc-8) \
              -DARMHF_DEB=ON
    make -j$(nproc)
    make package
    armhf__filename__=$(echo $(ls ${{steps.armhf-artifact-download.outputs.download-path}} | grep ..armhf.deb) | tr -d '\n')
    version__name__=${armhf__filename__#*-}
    name__=$(echo ${armhf__filename__%-*} | tr -d '\n')
    trailing_=$(git rev-list --count HEAD | tr -d '\n')
    version__=$(echo ${version__name__%-*} | tr -d '\n')
    echo "name__=$name__" >> $GITHUB_ENV
    echo "version__=$version__" >> $GITHUB_ENV
    echo "armhf__filename__=$armhf__filename__" >> $GITHUB_ENV
- name: Create Release
  id: create_release
  uses: actions/create-release@v1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
      tag_name: ${{ env.version__ }}
      release_name: ${{ env.name__ }}
      draft: false
      prerelease: false
- name: Upload Release Asset
  id: upload-release-asset 
  uses: actions/upload-release-asset@v1
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  with:
   # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, 
   # which include a `upload_url`. See this blog post for more info: 
   # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps 
    upload_url: ${{ steps.create_release.outputs.upload_url }}
    asset_path: ${{ github.workspace }}/build/${{ env.armhf__filename__ }}
    asset_name: ${{ env.armhf__filename__ }}
    asset_content_type: application/vnd.debian.binary-package

Hello @coderSHeE , could you elaborate what is that you want to convey?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
beagle-config
  
In Progress
Development

No branches or pull requests

3 participants