peterm6881 has joined #Speedsaver
<peterm6881> hey Xogium
<Xogium> hiya
<peterm6881> new kernel out, so as an exercise I'm gonna update my build directory, yesy the kernel, and try to push it
<peterm6881> test *
<peterm6881> but I wanted to ask you
<peterm6881> whats the correct way to update the version stamp on the image
<Xogium> you mean release another version ?
<peterm6881> yeah
<Xogium> hmm typically I use a utility from git-extra, which adds commands to git that simplify this
<Xogium> something like git release -c 2022-08-18
<Xogium> that opens the changelog with all the commits since a release has been made and lets you edit it if you need, for example if the kernel has been bumped several times between 2 releases I usually only keep the latest one
<peterm6881> whats git-extra?
<Xogium> and then when you save the file it automatically pushes and tag the release for you
<peterm6881> hmm...not sure what im supposed to do with that git
<Xogium> there is an installation guide
<peterm6881> got it, I named it git-extra by mistake, its in the Ubuntu repos
<peterm6881> thanks Xogium
<Xogium> you have to get the release number correct and such from the first shot, otherwise it will be a bit of a mess and you'll have to delete tags and the likes
<peterm6881> kernel checked out ok
<peterm6881> ok when I did git release 2022-08-18 as you said it fires up the changelog, what do I do with that?
<peterm6881> just save it?
<Xogium> feel free to tweak it however you like, rearrange lines, delete some if they are redundant like multiple kernel updates, etc
<Xogium> then once you're done, you save it and it will automatically push the stuff on github and make a release
<peterm6881> i think i'll just edit the kernel version
<peterm6881> or should i take out everything except the changed kernel version
<Xogium> you don't need to touch the top header that set the date and such
<Xogium> and you shouldn't remove the lines from previous releases either
<Xogium> but other than that, well. It is your project, feel free to do things however you like
<peterm6881> this is what it currently is, wait
<peterm6881> 2022-08-18 / 2022-08-18
<peterm6881> * Update README.md
<peterm6881> * Update README.md
<peterm6881> =======================
<peterm6881> * board/speedsaver: bump kernel to 5.19.1.
<peterm6881> * board/speedsaver: switch to bash as shell and enable bash-completion.
<peterm6881> * board/speedsaver: switch to the non dock device tree.
<peterm6881> * Revert "board/speedsaver: removed led patches."
<peterm6881> * Revert "board/speedsaver: added patch to enable the blue led."
<peterm6881> * board/speedsaver: added patch to enable the blue led.
<peterm6881> * board/speedsaver: removed led patches.
<peterm6881> * board/speedsaver: added u-boot patch to disable the green led.
<peterm6881> * board/speedsaver: provide a kernel patch which disables the green led.
<peterm6881> 2022-07-12 / 2022-07-12
<peterm6881> =======================
<peterm6881> * Added changelog file.
<peterm6881> * board/speedsaver: update kernel to 5.18.11.
<peterm6881> * board/speedsaver: increase rootfs size.
<peterm6881> * Initial commit.
<Xogium> I generally keep every commit in the changelog for fast check of the history, that makes it easier to know what got added in a release
<peterm6881> so what would edits would you make to this
<Xogium> hmm lets see
<peterm6881> to reflect the fact its now 5.19.2
<Xogium> hmmm did you commit that ? I don,t see 5.19.2 anywhere
<Xogium> want me to do it for now so you get a feel for it ?
<peterm6881> no i havent committed it because im still wondering what I should edit in the changelog file, its still open
<Xogium> you have to commit the kernel bump before you can release
<Xogium> otherwise you will make a release right now, with 5.19.1
<peterm6881> this is what it currently is
<peterm6881> 2022-08-18 / 2022-08-18
<peterm6881> =======================
<peterm6881> * board/speedsaver: bump kernel to 5.19.1.
<peterm6881> * Update README.md
<peterm6881> * Update README.md
<peterm6881> * board/speedsaver: switch to bash as shell and enable bash-completion.
<peterm6881> * board/speedsaver: switch to the non dock device tree.
<peterm6881> * Revert "board/speedsaver: removed led patches."
<peterm6881> * Revert "board/speedsaver: added patch to enable the blue led."
<peterm6881> * board/speedsaver: added patch to enable the blue led.
<peterm6881> * board/speedsaver: removed led patches.
<peterm6881> * board/speedsaver: added u-boot patch to disable the green led.
<peterm6881> * board/speedsaver: provide a kernel patch which disables the green led.
<peterm6881> 2022-07-12 / 2022-07-12
<peterm6881> =======================
<peterm6881> * Added changelog file.
<peterm6881> * board/speedsaver: update kernel to 5.18.11.
<peterm6881> * board/speedsaver: increase rootfs size.
<peterm6881> * Initial commit.
<peterm6881> sorry tghis is too fucking hard
<Xogium> the release will only include committed work, so you do have to commit the kernel version bump before you make a release, otherwise it will not be included in one
<peterm6881> ok
<Xogium> now the problem is even if you exit without saving that git release will be made, far as I remember
<Xogium> so you will have to get rid of the release manually and everything
<Xogium> I can do that for you if you are fine with starting with a fresh git clone afterwards
<peterm6881> remote: Support for password authentication was removed on August 13, 2021.
<peterm6881> remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
<peterm6881> fatal: Authentication failed for 'https://github.com/Speedsaver/buildroot-speedsaver-lichee.git/'
<Speedsaver> Title: About remote repositories - GitHub Docs (at docs.github.com)
<Xogium> ah
<peterm6881> how to fuck are you meant to do it, and why did it prompt me for my username and password
<Xogium> so you have to go through the token doc I showed the other day
<peterm6881> no im done with this
<peterm6881> the problem i have it i dont want to have to keep asking you for stuff
<peterm6881> but this is too fucking hard
<peterm6881> so its a no win situation
<peterm6881> i authorise myself with Authy every time I log in to github
<Xogium> well... I did tell you that git is hard. Especially with the crazy github requirements
<peterm6881> 6 digit token on the app
<Xogium> the command line doesn't know this
<peterm6881> but i cant relate that to pushing
<peterm6881> in console, from inside the git directory
<Xogium> tokens isn't the same as a 2 factor auth code
<peterm6881> can you link me the token doc again
<Xogium> that's just so you log in into the github account from your browser
<Speedsaver> Title: Creating a personal access token - GitHub Docs (at docs.github.com)
<Xogium> tokens are trying to be a safer alternative than using your account password to push stuff into a repo or do other things. If someone somehow gets one of your token, they can only fuck up that repo. They can't take over your entire github account
<Xogium> think of them a bit like application passwords a la google
<Xogium> at least that was my understanding
<peterm6881> do you just put the token in instead of the password?
<peterm6881> Password for 'https://peterbmckinley@github.com':
<peterm6881> Everything up-to-date
<Xogium> yep that's the idea
<Xogium> hmm
<peterm6881> surely if it did something the bot would have notified us
<Xogium> interesting, so it did not push your release after all
<Xogium> well that's a good thing, cause now you can work on committing that kernel update
<peterm6881> thats what I thought i was doing when i typed git push
<Xogium> well
<Xogium> what did you do so far ?
<Xogium> for the kernel update, I mean
<Xogium> went in menuconfig, bumped it there, did the update-defconfig danse ?
<Xogium> did you git add and git commit this ?
<peterm6881> edit kernel version to current Stable version from kernel.org
<peterm6881> Follow steps as per git pull
<peterm6881> didnt do git add and git commit, wait
<peterm6881> where do I do that from?
<Xogium> git commit -m "board/speedsaver: update kernel to 5.19.2."
<Xogium> or something similar
<Xogium> anywhere in the git repo
<Xogium> git add configs then tab should autocomplete the speedsaver_defconfig
<Xogium> when you've done a git commit, you can see it plus the changes it brought with git show
<Xogium> git show without any parameters will just display the very latest commit
<peterm6881> wait, stop, please
<peterm6881> peter@peter-powermatemlxxx:~/buildroot-speedsaver-lichee$ git commit -m "board/speedsaver: update kernel to 5.19.2."
<peterm6881> On branch master
<peterm6881> (use "git add <file>..." to update what will be committed)
<peterm6881> Changes not staged for commit:
<peterm6881> Your branch is up-to-date with 'origin/master'.
<peterm6881> (use "git restore <file>..." to discard changes in working directory)
<peterm6881> modified: changelog.md
<peterm6881> no changes added to commit (use "git add" and/or "git commit -a")
<peterm6881> its an absolute fucking nightmare
<Xogium> I thought you noted the instructions I gave the other day for git ? Git add, git commit and such
<peterm6881> ok take a step back. im in the git directory, it has the right kernel. What is STEP ONE
<Xogium> sorry I'm just very confused
<Xogium> you only ran menuconfig step
<Xogium> you didn't do update-defconfig
<Xogium> otherwise git status would show you have modified the config
<Xogium> btw, best do a git restore on the changelog file, so it is not modified yet from what the current upstream is
<peterm6881> i ran menuconfig, edited the kernel version, then ran make BR2_EXTERNAL=/home/peter/buildroot-speedsaver-lichee O=output/speedsaver speedsaver_defconfig from the buildroot directory and ran a new build
<peterm6881> oh and i did a make distclean too
<peterm6881> my build directory is fine, the image with the new kernel has been tested
<peterm6881> I just need to know step one to commit that
<Xogium> sorry I'm just having a hard time focusing rn, we're about to eat
<Xogium> so I'm like confused because the other day I did explain you need to do another step for this to even work
<Xogium> if you mondify with menuconfig, then you do a make distclean plus defconfig straight after, it will not save things
<peterm6881> ok take a step back
<peterm6881> i did git restore changelog.md
<Xogium> you need to menuconfig, then make update-defconfig for your defconfig to actually be updated with what you have changed in menuconfig
<peterm6881> so now we are back to git status
<peterm6881> Your branch is up-to-date with 'origin/master'.
<peterm6881> On branch master
<peterm6881> nothing to commit, working tree clean
<Xogium> good state to start with
<Xogium> so
<Xogium> make menuconfig in your build directory
<Xogium> then modify kernel version
<Xogium> and then
<Xogium> make update-defconfig
<peterm6881> thats already done
<peterm6881> ok wait
<Xogium> is it ? Note what I said above
<peterm6881> im updating notes at the same time
<Xogium> if you modify with menuconfig, then you do a make distclean plus defconfig straight after, it will not save things
<Xogium> menuconfig modify a file in your build directory, .config. Which you atomize the second you do a distclean
<Xogium> if you want to save what you have changed there, you need to make update-defconfig
<peterm6881> i run make menuconfig from buildroot-2022.02.4/output/speedsaver right?
<Xogium> yes
<peterm6881> just making sure that part is right
<peterm6881> ok wait
<peterm6881> need to open a pure console again
<Xogium> yep
<peterm6881> well you were right, it reverted to 5.19.1 :)
<peterm6881> wait
<Xogium> of course ;) I mean I know buildroot or I don't, right
<peterm6881> ok next step
<peterm6881> make update-defconfig right?
<Xogium> yes
<peterm6881> from the same directory, buildroot-2022.02.4/output/speedsaver right?
<Xogium> yes that should work
<Xogium> then you move back to the external buildroot tree
<Xogium> and try a git status over there
<peterm6881> make update-defconfig
<peterm6881> GEN /home/peter/buildroot-2022.02.4/output/speedsaver/Makefile
<peterm6881> looks good, whats next step
<peterm6881> ok wait
<Xogium> I'll be gone for about 1 hour while I eat, will you be around after ?
<peterm6881> On branch master
<peterm6881> Your branch is up-to-date with 'origin/master'.
<peterm6881> (use "git restore <file>..." to discard changes in working directory)
<peterm6881> (use "git add <file>..." to update what will be committed)
<peterm6881> Changes not staged for commit:
<peterm6881> modified: configs/speedsaver_defconfig
<peterm6881> no changes added to commit (use "git add" and/or "git commit -a")
<peterm6881> can you give me the next few steps?
<peterm6881> before you go
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/4e26aa9f19dd...70e95023b9fe):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley 70e950: bumped kernel to 5.19.2 (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/70e95023b9fe0605a39139cf69204f2d3bddb49b)
<peterm6881> success
<Speedsaver> buildroot-speedsaver-lichee: peterbmckinley tagged 2022-08-18 (https://github.com/Speedsaver/buildroot-speedsaver-lichee/releases/tag/2022-08-18)
<Speedsaver> buildroot-speedsaver-lichee: peterbmckinley tagged * 7de30b (Release 2022-08-18) as 2022-08-18 (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/7de30b4f9d18)
<Speedsaver> 2022-08-18 @ buildroot-speedsaver-lichee: peterbmckinley 7de30b: Release 2022-08-18 (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/7de30b4f9d180ef5695b7d21e94753ec35e0ba6a)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/70e95023b9fe...7de30b4f9d18):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley 7de30b: Release 2022-08-18 (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/7de30b4f9d180ef5695b7d21e94753ec35e0ba6a)
<peterm6881> sweet
<peterm6881> notes as follows:
<peterm6881> cd buildroot-2022.02.4/output/speedsaver
<peterm6881> make menuconfig
<peterm6881> edit kernel version to current Stable version from kernel.org
<peterm6881> cd
<peterm6881> make update-defconfig
<peterm6881> cd buildroot-speedsaver-lichee
<peterm6881> git add configs/speedsaver_defconfig
<peterm6881> git commit -a
<peterm6881> TEST KERNEL AT THIS POINT
<peterm6881> git push
<peterm6881> git release -c yyyy-mm-dd
<peterm6881> git status
<peterm6881> My observation on Buildroot is thats I find it incredibly hard to work out how simple it is
<Xogium> heh so you managed in the end
_whitelogger has joined #Speedsaver
<peterm6881> yeah lol
<peterm6881> quite pleased with that
<Speedsaver> master @ Speedsaver: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/Speedsaver/compare/a7875ab2fdf6...863b58727ace):
<Speedsaver> master @ Speedsaver: peterbmckinley 863b58: Update README.md (https://github.com/Speedsaver/Speedsaver/commit/863b58727ace1e15d20fe2dc5380ad3ba7e604ea)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/7de30b4f9d18...be8d04deb079):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley be8d04: Update README.md (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/be8d04deb07971dad42d6ef818103d9b96ac9d56)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/be8d04deb079...e4de20dad4e2):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley e4de20: Update README.md (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/e4de20dad4e210e9423be3ea8ae36028d5633279)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/e4de20dad4e2...94261f219e74):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley 94261f: Update README.md (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/94261f219e744ef0c7d43d17f8eb70bb83918c63)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/94261f219e74...5cb15e4515f0):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley 5cb15e: Update README.md (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/5cb15e4515f01286ad2cdd0975745c3a1608776c)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/5cb15e4515f0...7e298170a69f):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley 7e2981: Update README.md (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/7e298170a69f40d9c70ef4f6898ec7583e839df1)
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/buildroot-speedsaver-lichee/compare/7e298170a69f...d952261ed1aa):
<Speedsaver> master @ buildroot-speedsaver-lichee: peterbmckinley d95226: Update README.md (https://github.com/Speedsaver/buildroot-speedsaver-lichee/commit/d952261ed1aaeaf2315adde881666d48be7972c5)
<Speedsaver> master @ Speedsaver: peterbmckinley pushed 1 commit (https://github.com/Speedsaver/Speedsaver/compare/863b58727ace...f8cc7f07f1e2):
<Speedsaver> master @ Speedsaver: peterbmckinley f8cc7f: Update README.md (https://github.com/Speedsaver/Speedsaver/commit/f8cc7f07f1e28d76e7e07e252173a0b099b902ba)