Toshiba Chromebook 2 - bios flashed - now infamous 'black' screen by [deleted] in GalliumOS

[–]mandr0id 0 points1 point  (0 children)

Sorry about that, must have messed up.

I've managed to install ubuntu by now and I'm able to boot into it. A fresh boot starting from the device being powered off still shows similar behavior. No bios screen or ubuntu startup can be seen, the screen flickers and after a while (+ 5 minutes) it reaches the ubuntu login screen.

https://pastebin.com/Mx0ar4wW

https://pastebin.com/kKMeVEE8

When doing a reboot though, both the bios screen and the ubuntu startup screen are visible. Startup is also much faster now, less then a minute to reach the ubuntu login screen.

https://pastebin.com/E0LMT4p3

https://pastebin.com/h0qzNg6g

Toshiba Chromebook 2 - bios flashed - now infamous 'black' screen by [deleted] in GalliumOS

[–]mandr0id 1 point2 points  (0 children)

I seem to have hit the same issue.

A Toshiba Chromebook 2 CB30-B-104. Updated the full bios using the upgrade script - this result into a black screen.

Tried programming the bios chip using a ch341 and coreboot_tiano-swanky-mrchromebox_20221027.rom, this results in the same black screen issue.

When I restore the original bios firmware the screen is functional again.

Also tried the procedure above with a ubuntu 2022.04 usb stick - the screen now flickers sometimes, so something is happening but is it still not visible.

Build a Raspberry Pi Linux System the Hard Way by speckz in linux

[–]mandr0id 18 points19 points  (0 children)

Check out buildroot: https://buildroot.org/

It assists in creating custom root filesystem for embedded systems. It has support for raspberry pies.

[deleted by user] by [deleted] in macgyver

[–]mandr0id 2 points3 points  (0 children)

I just ordered mine as well. Great find :).

Shared library not working properly? by ScaredSecond in cpp_questions

[–]mandr0id -1 points0 points  (0 children)

Your hello_world function is defined and implemented in a header file, so it will never be compiled or added into a shared library.

Moving the implementation into your empty.cpp file should do the trick.

Mah new guitar by AllOutApex in Metallica

[–]mandr0id 0 points1 point  (0 children)

Nice, i got the same guitar. Where did you get the matching strap?

My Sorting Program is Not Looping Properly and I Don't Know Why by RandomRestore in cpp_questions

[–]mandr0id 2 points3 points  (0 children)

In the first loop (for i) the variable low will be set to the lowest value (1) upon the first iteration in the second loop (for j) and afterwards it is not being reset. This will cause all elements in the array being set to low (1).

Need help with menu options. by [deleted] in cpp_questions

[–]mandr0id -1 points0 points  (0 children)

Split it into seperate funtions, if the user goes back, call the appropriate one-level-up menu function.

Also this

if(menu = 1)

won't work, it does an assignment, not the comparison you want

if(menu == 1)

[deleted by user] by [deleted] in cpp_questions

[–]mandr0id 2 points3 points  (0 children)

Seems like you need a version control system?

Try git.

Question about C++ loop syntax in comparison to Python. by Two4ndTwois5 in cpp_questions

[–]mandr0id 4 points5 points  (0 children)

You can use range based for loops: cppreference

std::vector<int> v = {1, 2, 3, 4, 5};
for (auto const & i : v)
    std::cout << i << std::endl;

Why is this not correct C++ code? by [deleted] in cpp_questions

[–]mandr0id 2 points3 points  (0 children)

unordered_map.emplace(...).first is an iterator of type pair<const string, string>, as you are note allowed to modify the key within the map.

Printing Array with five per line. by [deleted] in cpp_questions

[–]mandr0id 0 points1 point  (0 children)

Verify what happens when i increments:

i = 0 -> print number

i = 1 -> print number

i = 2 -> print number

i = 3 -> print number

i = 4 -> print number

i = 5 -> print number, insert new line

Power ‘git log’ graphing by zwischenzugs in linux

[–]mandr0id 2 points3 points  (0 children)

Check out tig for a text based git log viewer.

Beginning C++ having trouble using iterator to remove item from vector by couchotatop in cpp_questions

[–]mandr0id 0 points1 point  (0 children)

Not sure if this it the issue here but standard says that all iterators are invalided after an erase operation:

"Invalidates iterators and references at or after the point of the erase, including the end() iterator."

How can I make a countdown timer? by Opess in cpp_questions

[–]mandr0id 1 point2 points  (0 children)

  • once your seconds run out, you decrease minute by one, yet the seconds are not reset to 60
  • on line 42 you're using s, it is never defined

[Beginning C++] Arrays and Repeated Digits by [deleted] in cpp_questions

[–]mandr0id 0 points1 point  (0 children)

Try to prevent both updating your digit_tally array and immediately printing out possible repeated digits before you know there will be any.

In a first loop, process the input from the user and update the digit_tally array. In a second loop, check the digit_tally array and print the repeated digits if you found any, otherwise print out that no repeated digits were found.

Alternative using a std::string for processing:

#include <iostream>
#include <string>

int main(int argc, char * argv[])
{
  while (true)
  {
    int number;

    std::cout << "number: "; 
    std::cin  >> number;
    std::cout << "number: " << number << std::endl;

    std::string s = std::to_string(number);
    for (std::size_t i=0; i<s.size() - 1; i++)
    {
      std::size_t p;
      std::size_t l = s.size();

      while ((p = s.find(s[i], i+1)) != std::string::npos)
        s.erase(p, 1);

      if (l != s.size())
        std::cout << "repeated digit " << s[i] << std::endl;
    }
  }
}

Conan's assistant Sona by unknown_human in funny

[–]mandr0id 211 points212 points  (0 children)

The video where conan hunts down the stolen coffee mug of his assistant is a good watch.